我convicing GIT到则会忽略生成的文件制作GIT忽略DLL,PDB和类似的生成文件
这里的问题是,我想忽略
modified: BLLTarifario/bin/Debug/BLLTarifario.dll
modified: BLLTarifario/bin/Debug/BLLTarifario.pdb
modified: BLLTarifario/bin/Debug/Corte.Library.dll
modified: BLLTarifario/bin/Debug/Corte.Library.pdb
modified: BLLTarifario/obj/Debug/BLLTarifario.csprojResolveAssemblyReference.cache
modified: BLLTarifario/obj/Debug/BLLTarifario.dll
modified: BLLTarifario/obj/Debug/BLLTarifario.pdb
modified: Corte.Library/bin/Debug/Corte.Library.dll
modified: Corte.Library/bin/Debug/Corte.Library.pdb
modified: Corte.Library/obj/Debug/Corte.Library.csprojResolveAssemblyReference.cache
modified: Corte.Library/obj/Debug/Corte.Library.dll
modified: Corte.Library/obj/Debug/Corte.Library.pdb
modified: Tarifario.Site/bin/BLLTarifario.dll
modified: Tarifario.Site/bin/BLLTarifario.pdb
modified: Tarifario.Site/bin/Corte.Library.dll
modified: Tarifario.Site/bin/Corte.Library.pdb
modified: Tarifario.Site/bin/Tarifario.Site.dll
modified: Tarifario.Site/bin/Tarifario.Site.pdb
modified: Tarifario.Site/obj/Debug/Tarifario.Site.csprojResolveAssemblyReference.cache
modified: Tarifario.Site/obj/Debug/Tarifario.Site.dll
modified: Tarifario.Site/obj/Debug/Tarifario.Site.pdb
modified: TestValidate/bin/Debug/BLLTarifario.dll
modified: TestValidate/bin/Debug/BLLTarifario.pdb
modified: TestValidate/bin/Debug/Corte.Library.dll
modified: TestValidate/bin/Debug/Corte.Library.pdb
modified: TestValidate/bin/Debug/TestValidate.exe
modified: TestValidate/bin/Debug/TestValidate.pdb
modified: TestValidate/obj/x86/Debug/TestValidate.csprojResolveAssemblyReference.cache
modified: TestValidate/obj/x86/Debug/TestValidate.exe
modified: TestValidate/obj/x86/Debug/TestValidate.pdb
文件的例子,这里是的.gitignore
/build/
*.suo
*.user
_ReSharper.*/
*.sdf
bin/
obj/
Debug/
Release/
*.opensdf
*.tlog
*.log
TestResult.xml
*.VisualState.xml
Version.cs
Version.h
Version.cpp
*/bin/*
*/obj/*
请给我提供git命令的例子来实现 –
@MauricioGracia在我的答案中添加了命令。 –
感谢您的快速响应我结束了使用'git rm --cached' –