Skip to content

How to use git-p4 with multiple branches in Perforce? #1

@ludovicc

Description

@ludovicc

Hello,
I would like to use git to be able to switch quickly between branches in Perforce (Main branch, branch for 1.1, branch for 1.2...). Is that possible?
I have tried to do:

git clone //Main
git-p4 rebase # ok

git-p4 sync //Release/backEnd-1.2/ --branch=1.2
git checkout 1.2
git-p4 rebase
Performing incremental import into refs/remotes/p4/master git branch
Depot paths: //Main/
No changes to import!
fatal: Not a valid object name HEAD1
Command failed: git cat-file commit HEAD
1

It looks like I'm doing something wrong here.

Thanks,
Ludovic

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions