The Git Ignore file is used to configure Git to ignore any files/folders you do not want to add to source control.
The below configures git to ignore common visual studio and Resharper files.
Create a file called ".gitignore" in your project root with the below lines.
*/bin
*/obj
*.user
*.suo
_ReSharper.*
*.sln.cache
*.xap
*.vspcc
*.vscc
*.vssscc
Happy Coding
Ravi