简体   繁体   中英

Git p4 branches

I have a project based in
//Engineering/qwerty/baseline/servers/ApplicationServer/ and branch
//Engineering/qwerty/branches/rtf/

How can I do one git repo with
master => //Engineering/qwerty/baseline/servers/ApplicationServer/ and branch rtf => //Engineering/qwerty/branches/rtf/ ?

Maybe:

git clone //Engineering/qwerty/baseline/servers/ApplicationServer
cd ApplicationServer
git sync --branch refs/remotes/p4/rtf //Engineering/qwerty/branches/rtf

But I haven't tried it.

From http://git-scm.com/docs/git-p4

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM