Git Setup a tracking branch 发表于 2014-07-29 | | 阅读次数 1234567891011121314# Setup upstream repositorygit remote add upstream path-to-upstream# Fetch upstream's branchesgit fetch upstream# List all branchesgit list --all# Setup a tracking branchgit checkout -b foo --track upstream/foo# Or omit the `-b` argumentgit checkout --track upstream/foo Related Question: How to clone all remote branches with Git? 本文作者: IIssNan 本文链接: http://notes.iissnan.com/2014/git-setup-a-tracking-branch/ 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!