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文件夾工具,然後再次克隆整個項目。