【问题标题】:What is the command to add all changes except bin folder in GIT?在 GIT 中添加除 bin 文件夹之外的所有更改的命令是什么?
【发布时间】:2013-03-13 02:47:53
【问题描述】:

我在 GIT 中有一个 Android 项目。我想提交所有更改,但不想提交 bin 文件夹。除了 bin 文件夹之外,还有什么命令可以提交所有内容吗?

【问题讨论】:

    标签: git git-commit


    【解决方案1】:

    您可以像这样将 bin 文件夹添加到 .gitignore 文件中:

    bin/
    

    如果 bin 文件夹已被跟踪,即使您已将其添加到 gitignore,您也可以:

    git rm -r --cached bin/
    

    【讨论】:

      【解决方案2】:

      将 bin 添加到您的 .gitignore 文件中。

      【讨论】:

        【解决方案3】:

        只需在.gitignore中添加bin文件夹

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2015-12-04
          • 1970-01-01
          • 2016-06-12
          • 1970-01-01
          • 2011-08-03
          • 2012-10-21
          • 1970-01-01
          相关资源
          最近更新 更多