Git-p4 synchronization on different branches and repos

I am trying to mirror the perforce repository, and git -p4 works quite well in the main branch. I just need to call git-p4 rebase . I am also trying to flip another branch, but this is not so easy to get. I thought I could just do git-p4 rebase --branch=p4/whatever //open/branches/whatever , but rebase seems to ignore these tags, and if I do sync , I get the error message instead: fast-import failed: warning: Not updating refs/heads/p4/whatever (new tip 14f7e14e5079bb730363440901adee102e5f04c9 does not contain 0ca89b0333f408367e3676720b109a08cc40b3ae)

My initial import was syncing with @all, why doesn't it update, or is there another / better way to do this?

+4
source share
1 answer

git -p4 does not work when you try to have more than one p4 head in git. Sad, I know. What I ended up with was that each main / branch in a separate git repository. This does not allow you to manage the branches that I know.

Also, @all doesn't work for me either because it tries to figure out the branches and then fails. I use git -p4 to get the latest information and use the history from there.

0
source

All Articles