Skip to content

Instantly share code, notes, and snippets.

@evan-boissonnot
Forked from tqheel/commit-config.sh
Created July 28, 2020 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evan-boissonnot/469e41de4f485b2ac1d6810d37b8af03 to your computer and use it in GitHub Desktop.
Save evan-boissonnot/469e41de4f485b2ac1d6810d37b8af03 to your computer and use it in GitHub Desktop.
Prevent ASP.Net Web.Config From Being Committed By Git
#Run this to reverse ignoring of changes to web.config so it gets committed.
git update-index --no-assume-unchanged path_to_file/web.config
#Run this in GitBash to temporarily ignore changes to web.config so it does not get committed.
git update-index --assume-unchanged path_to_file/web.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment