Skip to content

Instantly share code, notes, and snippets.

@matthewmccullough
Created January 24, 2011 04:08
Show Gist options
  • Select an option

  • Save matthewmccullough/792815 to your computer and use it in GitHub Desktop.

Select an option

Save matthewmccullough/792815 to your computer and use it in GitHub Desktop.
This script sets up aliases for ignoring changes to a version controlled file
# Using Git? Want to ignore changes to a noisy (e.g. tool-updated file), yet have to have it exist to satisfy said tool?
# Check it in once to source code control, then ignore all future changes. This option only applies to your local clone.
# Use this by typing 'git ignorechanges MYFILE'
git config --global alias.ignorechanges = update-index --assume-unchanged
# Use this by typing 'git noticechanges MYFILE'
git config --global alias.noticechanges = update-index --no-assume-unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment