【问题标题】:What should I ignore in a C# project when I am using git? [duplicate]当我使用 git 时,我应该在 C# 项目中忽略什么? [复制]
【发布时间】:2014-08-15 17:28:57
【问题描述】:

我是 C# 新手,实际上我正在使用 webService 和 edmx 数据库对象在 C# 项目中工作。我想把这个项目放在 git 上,但我不知道单独的生成文件和源文件。有人可以告诉我应该在 git 中忽略哪些类型的文件吗?

谢谢,

【问题讨论】:

标签: c# git


【解决方案1】:

GitHub 有一个带有预定义 .gitignore files 的存储库。 C#(即 Visual Studio,参见 this file)应该是一个很好的起点:

https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

【讨论】:

  • 你也可以使用www.gitignore.io。只需输入 C# 和 Visual Studio 的标签,它就会从 github 获取这些 .gitignore 文件并为您合并它们。
  • 那里没有C#标签。
  • 我的错,那就是 Visual Studio。
猜你喜欢
  • 2014-03-03
  • 2012-07-10
  • 2011-07-26
  • 2016-04-22
  • 2010-10-08
  • 1970-01-01
  • 2011-04-10
  • 2012-03-18
  • 1970-01-01
相关资源
最近更新 更多