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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.