Sync exists git repo with p4 repo and continues to work

How to synchronize my git repositories (with my own history) with p4 repo (with my own history) but the files in these repositories on HEAD are the same.

I do

git clone git@git.dev.local:qwerty.git
cd qwerty
git p4 sync //path/in/your/perforce/depot

Got this chart Graph

What should I do next?

Also when i do

git p4 rebase

I have this fatal error: Invalid object name HEAD ~ 97
Failed to execute command: git cat-file commit HEAD ~ 97

+4
source share
1 answer

Basically, I don’t think you can, since you have two development stories that produce the same set of HEAD files.

I think you will need:

  • Drop the git history and import from perforce:
    • With git -p4
    • perforce- git fusion
    • perforce, git.
  • perforce git ( - , perforce).
0

Source: https://habr.com/ru/post/1531314/


All Articles