Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个基于 //Engineering/qwerty/baseline/servers/ApplicationServer/ 和分支的项目 //Engineering/qwerty/branches/rtf/
//Engineering/qwerty/baseline/servers/ApplicationServer/
//Engineering/qwerty/branches/rtf/
我怎样才能用 master => //Engineering/qwerty/baseline/servers/ApplicationServer/ 和分支做一个 git repo rtf => //Engineering/qwerty/branches/rtf/ ?
master => //Engineering/qwerty/baseline/servers/ApplicationServer/
rtf => //Engineering/qwerty/branches/rtf/
也许:
git clone //Engineering/qwerty/baseline/servers/ApplicationServer cd ApplicationServer git sync --branch refs/remotes/p4/rtf //Engineering/qwerty/branches/rtf
但我还没有尝试过。
来自http://git-scm.com/docs/git-p4