点击工具-》源代码管理-》Git存储库设置-》常规-》Git files 忽略文件 编辑
Ignore Visual Studio temporary files, build results, and
files generated by popular Visual Studio add-ons.
Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Mono auto generated files
mono_crash.*
Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
Visual Studio 2015/2017 cache/options directory
.vs/
Uncomment if you have tasks that create the project’s static files in wwwroot
#wwwroot/
Visual Studio 2017 auto generated files
Generated\ Files/
MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
NUnit
.VisualState.xml
TestResult.xml
nunit-.xml
Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
Benchmark Results
BenchmarkDotNet.Artifacts/
.NET Core
project.lock.json
project.fragment.lock.json
artifacts/
ASP.NET Scaffolding
ScaffoldingReadMe.txt
StyleCop
StyleCopReport.xml
Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb