我有一个GIT存储库和几个SUBMODULES。GIT子模块更新*删除未被取消的文件
的问题是每一个有人更新子模块的时候,我试图通过调用来更新我的文件:
$ git submodule update
但发生的事情是它删除我所有未提交的文件,这是很烦人的。
我试图提交和第一推的文件,但它不会让我来推:
error: failed to push some refs to 'ssh://dev.ancreative.co.uk/var/git/library/Blocks.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'non-fast-forward'
section of 'git push --help' for details.*
所以我尝试调用git submodule update
,但随后这种缺失情况。
任何人都知道什么会导致这个问题?非常感谢。