Git SubModule Visual Studio

时间:2016-04-08 14:49:30

标签: git visual-studio visual-studio-2015

我们正在转向Git。现在我已经阅读了所有不使用Git子模块的内容,但是,我认为这符合我们的目的。我们有共享的库,无论他们在哪个项目中都需要更新,然后再同步回服务器。

我已将项目添加到git,添加了一个子项目,并且一切似乎都有效。然而,一个非常奇怪的事情发生了,只要我在Visual Studio中保存文件作为子项目的一部分,它就不再将其标记为更改,我不能再提交或推送它。这一切在主项目中都运行良好。它会将文件标记为已更改,直到文件保存然后消失?

enter image description here

任何线索/提示都会非常感激

1 个答案:

答案 0 :(得分:15)

There is a request in VisualStudio UserVoice to allow Commit changes to a submodule using VS, the request specifies the following:

The same features that we have for files in GIT repositories should be available for files in submodules, too:

  • being able to commit changes to the submodule
  • current branch, pending changes and unpublished commits being displayed at bottom on VS window
  • mini-info about the file (n changes | n authors, n changes)
  • view history / annotate / compare with unmodified
  • etc.

If you also want these features to be implemented please vote here so it will get prioritized