gpt4 book ai didi

visual-studio - 将 Visual Studio 与 Git 结合使用时要忽略的文件

转载 作者:IT王子 更新时间:2023-10-29 00:35:05 25 4
gpt4 key购买 nike

我已经安装了 Git 以使用 Visual Studio 2008 进行一些开发。大部分工作将是新的开发,但我们确实有一些 VS2005 之前的旧项目,我想将它们带到新的存储库中。有一个关于一般 VS/Git integration 的现有线程但我的问题仅限于 .gitignore 文件和 Visual Studio。

我的问题分为两部分:

  • .gitignore 文件中应包含哪些条目以涵盖 Visual Studio 特定文件,如二进制文件、程序集、调试文件等?上面提到的线程中涵盖了一些内容,但是是否有完整的集合?

  • 在什么情况下您需要全局排除文件,或针对单个存储库,或使用环境变量?

我已经知道怎么做了。这是 Git user-manual 的摘录关于忽略文件。

If you wish the exclude patterns to affect only certain repositories (instead of every repository for a given project), you may instead put them in a file in your repository named .git/info/exclude, or in any file specified by the core.excludesfile configuration variable. Some git commands can also take exclude patterns directly on the command line. See gitignore(5) for the details.

最佳答案

关于visual-studio - 将 Visual Studio 与 Git 结合使用时要忽略的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1677113/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com