quickstep25
11/16/2015 - 1:49 AM

Icon? How to include this in your .gitignore file.

Icon? How to include this in your .gitignore file.

## Put the Icon? file in .gitignore After you've tried repeated to get .git to ignore this file, you have probably ended up here, reading this helpful tip.

Open up a terminal session:

# Navigate to your project root directory
cd path/to/projectname/

Edit your .gitignore file

vim .gitignore

Enter the string to ignore the file

# using arrow keys, move to make new line
# On the new line:
# press the "i" key to enter into "INSERT" mode
# type: 
Icon
# then press CTRL+V
# then press ENTER
# then press CTRL+V
# then press ENTER 

Review changes

# You should see:
Icon^M^M

Now save and quit

# Exit "insert" mode
# push ESC key
# to save and exit (aka: write and quit), type:
:wq
# press ENTER to exit VIM