Skip to content

Instantly share code, notes, and snippets.

@tqheel
Created July 19, 2012 16:09
Show Gist options
  • Save tqheel/3144984 to your computer and use it in GitHub Desktop.
Save tqheel/3144984 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
@yvzkr
Copy link

yvzkr commented Apr 15, 2020

if you reset this setting use;

git update-index --really-refresh

@tqheel
Copy link
Author

tqheel commented Apr 15, 2020

Wow. The Internet is fascinating. I don't even remember writing this or what project I was referring to at the time.

@tqheel
Copy link
Author

tqheel commented Apr 15, 2020

But thanks for the tip @yvzkr!

@yvzkr
Copy link

yvzkr commented Jun 4, 2020

But thanks for the tip @yvzkr!

haha your welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment