我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' –