Git for Visual Studio Developers–Get your .gitignore right and save yourself needless merges
One of the most common issues I am finding with teams moving from Team Foundation Version Control to TFS-Git is that they are including files in their repositories that they shouldn’t. The most common offenders are .suo user settings files, Nuget packages and Azure publish settings. Luckily, the solution is straightforward.
1. Ensure you have no pending changes.
2. Close the solution
5. Open the .gitignore file from GitHub that is specific to Visual Studio projects and copy the contents to the clip board. https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore
Figure: the .gitignore includes a list of all of the files that you want to avoid committing to your repository
10. If you have included files in your repository that you wish to exclude from the repository but not delete from your local working directory refer to
on my page for