Skip to content

Instantly share code, notes, and snippets.

@jamesstacyjones
Last active December 25, 2015 09:29
Show Gist options
  • Save jamesstacyjones/6953856 to your computer and use it in GitHub Desktop.
Save jamesstacyjones/6953856 to your computer and use it in GitHub Desktop.
git ~ ignore files that already exist in the repository

To ignore command:

git update-index --assume-unchanged [path/filename.ext]

To un-ignore command:

git update-index --no-assume-unchanged [path/filename.ext]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment