How to clone branch with git-p4?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I did: git p4 clone //depot/path/to/project/trunk/@all project to create the master branch of project . Now I want to clone //depot/path/to/project/release to the release branch of project . How is that done? UPDATE: Using --detect-branches doesn't work, either. It reports that it's updating two branches (when there are really three branches) but git branch reports only master exists. 回答1: Here are my setup notes from when I was using git-p4. It might be helpful: Download the p4 linux client . Store the file in ~/bin or /usr/local