BorisMomtchev / NiCris.Dashboard-.NET-4.5

NiCris.Dashboard for .NET 4.5 and VS 2012
Other
1 stars 0 forks source link

gitignore and db files #6

Closed BorisMomtchev closed 12 years ago

BorisMomtchev commented 12 years ago

http://stackoverflow.com/questions/11792461/visual-studio-gitignore-and-mdf-ldf-files

Two possible solutions:

temporarily take them out of your .gitignore, then git rm --cached -- .mdf and git rm --cached -- .ldf. This will remove the files from the index while keeping them on disk . When done, git commit -m "removing crap from repo" and restore your .gitignore.

If you don't want to play around with your .gitignore, you could use update-index : git update-index --assume-unchanged -- .mdf and git update-index --assume-unchanged -- .ldf. This will force git to see the files as unchanged even if they were.

BorisMomtchev commented 12 years ago

git update-index --no-assume-unchanged