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?
Git - How to create .gitignore file
De openkb
Sommaire |
Questions
Answers
If you re using Windows it will not let you create a file without a filename in Windows Explorer. It will give you the error " You must type a file name " if you try to rename a text file as .gitignore
<img src="https://i.imgur.com/W0J6Ort.png" alt="enter image description here">
To get around this I used the following steps
- Create the text file gitignore.txt
- Open it in a text editor and add your rules, then save and close
- Hold SHIFT, right click the folder you re in, then select Open command window here
- Then rename the file in the command line, with ren gitignore.txt .gitignore
Source
License : cc by-sa 3.0
http://stackoverflow.com/questions/10744305/how-to-create-gitignore-file