git-p4 submit on branch other than master?

1.1k views Asked by At

I noticed that when using git-p4 submit, regardless of what branch I am in on git, it always sends my code to the place in p4 where I cloned it originally. That's my desired behavior when I am on the master branch, however, I'd like to correlate other local branches to other remote p4 branches. That is, I want to "track" or "publish" branches other than master from git to p4. Is that possible?

1

There are 1 answers

2
randy-wandisco On BEST ANSWER

Yes, although it takes a bit of setup. Have a look at the detect-branches option. You'll need to have a Perforce branch spec for each Perforce branch.