Development Experience

Friday, March 2, 2018

How Clean Git Repository for Visual Studio Projects?

Today I suddenly push a personal project of mine to a repository without .gitignore .gitignore is very helpful if you don't want to mess your git repo with machine generated files like compiled codes, build outputs, node_modules , node_modules , packages etc.

There is an offical gitignore file from github here 
Or you can copy from gist I created. So I you want to clear your mess from your git repository with the help of .gitignore file or want to remove files that was tracked before new .gitignore run the following code. .gitignore file sample

No comments:

Post a Comment