Git excludes for dotnet
June 25th, 2009
No comments
I am just using github to save a dotnet project for this blog. Of course, this project is on windows and I need to think about my ignores. I know that I am not going to remember this for next time.
So I am running GitBash on windows. Ah, that feels nice and familiar.
cd /myproject $ cat .git/info/exclude # git-ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ $ vi .git/info/exclude .DS_Store ._* TestResults *Resharper* **.ReSharper** **\_ReSharper.** *.bak *.cache *.resharperoptions *.suo *.user *.vsprops */TestResults *\bin* *\obj* _ReSharper.* $ git status --> now those files are there
Of course, that works only for this repository. Sometime I’ll go and set the global excludes.