0
我们公司使用Perfoce来管理项目,并且我使用git-p4来同步本地端的Perforce存储库。 但是在P4版本库中,它与许多模块结合在一起,并且可能包含某些模块的.git文件夹。有人使用Git的地方,把git的/到Perforce公司:(git-p4导入树包含子目录.git
当我用的git-P4克隆克隆P4,那么它总是说,一些文件被删除。
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: module-by-git/.git/FETCH_HEAD
# deleted: module-by-git/.git/HEAD
# deleted: module-by-git/.git/ORIG_HEAD
# deleted: module-by-git/.git/config
# deleted: module-by-git/.git/description
# deleted: module-by-git/.git/hooks/commit-msg
# deleted: module-by-git/.git/hooks/pre-auto-gc
# deleted: module-by-git/.git/index
# deleted: module-by-git/.git/info/exclude
# deleted: module-by-git/.git/logs/HEAD
# deleted: module-by-git/.git/logs/refs/remotes/m/master
我尝试使用“git filter-branch”删除这些文件,但它禁止在肮脏的工作目录上使用。
我该如何解决这个问题? 在我以前的解决方法中,我只是通过Perforce删除这些.git文件夹工具,然后再次克隆整个项目。