I need to add some rules to my .gitignore
file, however, I can't find it in my project folder. Isn't it created automatically by Xcode? If not, what command allows me to create one?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
I use notepad++. New File > SaveAs > .gitignore (Save as type -> All types(.))
I have another simple idea
Let's use the echo command in cmd ,
echo ./idea > .gitignore
this will create the .gitignore file having text content "./idea"
you may now manually change data from the file using text editor.
or simply
console :
to instantly edit gitignore.
If you dont know which files are should be gitignored for your IDE or Operating System just goto www.gitignore.io
Here's my personal favorite, http://help.github.com/ignore-files/
Also just in case you wanted to ignore xcode files, refer to this answer https://stackoverflow.com/a/49488/126235
Here a nice tip under Windows:
Tested under Windows 7 and 8.
This tip assumes that your Windows Explorer displays the file extensions.
if you use Sublime as your IDE you can create a new file and save it as .gitignore. Simply using ctrl N for the new file, and ctrl S to save as ".gitignore".
By running the command in step 3 you will get the .gitignore file in the project directory. Thanks.