Created
January 24, 2011 04:08
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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