Rut*_*ing 29
取决于项目,但我的.gitignore中的Silverlight + WPF项目有以下内容:
# Visual Studio left-overs
*.suo # 'user' settings like 'which file is open in Visual Studio'
*.ncb # Used for debugging
*.user
*.ccscc # Used for versioning
*.cache
# Editor left-overs
*~ # (x)emacs
*.bak # Windows related
\#*\# # (x)emacs
*.orig # Own usage
# Compiled files
*/bin/
*/obj/
*/Obj/ # git is case sensitive
*/Generated_Code/
PrecompiledWeb
*/ClientBin
# Windows left-overs
Thumbs.db # Having images in the source tree generates those files in Explorer
Run Code Online (Sandbox Code Playgroud)
但是,'.suo'有些问题:它还包含应该是项目设置的"用户"设置,例如Silverlight应用程序的启动页面.
最好也是唯一的方法是迭代添加要排除的文件.如果您正在使用git,请使用git-gui快速,交互地查看您忘记排除的文件列表.适应.gitignore并在git-gui中刷新.迭代直到剩下的文件是你输入的文件.
某些类型的文件预先不太清楚.要确保你明白你在检查文件.例如,对于RIA服务在我们的Silverlight项目,我们必须通过Visual Studio中含有2个帐户,并导致巨额的10Mb的.mdb数据库文件生成的验证数据库(!).一旦我们了解它的来源,将其更改为SQL转储就会将大小减小到(仍然很大)500Kb.总是需要在签入之前不断(重新)检查,因此没有明确的列表.
| 归档时间: |
|
| 查看次数: |
7287 次 |
| 最近记录: |