Skip to content

Instantly share code, notes, and snippets.

@quickstep25
Created November 16, 2015 01:49
Show Gist options
  • Save quickstep25/36469331d9fea8e0f3eb to your computer and use it in GitHub Desktop.
Save quickstep25/36469331d9fea8e0f3eb to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment