我创建了一个使用SourceTree和git流(按下按钮)的功能分支。然后我试图将这些分支克隆到另一个本地副本中,但我无法再在本地获得这些分支。举例来说,如果我发出:获取使用gitflow创建的分支?
的Git分支-v -a,我看到:
[email protected] MINGW64 /C/Dogwood (develop)
$ git branch -v -a
* develop de5e2f2 Updated to Build 4.1.6.37
master 0aa9613 Release 4.1.6.37
remotes/origin/HEAD -> origin/master
remotes/origin/develop de5e2f2 Updated to Build 4.1.6.37
remotes/origin/feature/cleanups ef035e9 Added alert dialog
remotes/origin/master 0aa9613 Release 4.1.6.37
所以遥控器/ *被git的流动产生。我只创建开发和手动掌握
但是,如何轻松地将所有遥控器克隆回本地驱动器?
我试图
git fetch
,但不知道它做了,因为如果我发出
git branch
我只有我的驱动器上看到的两个主要分支。
* develop
master
[email protected] MINGW64 /C/Dogwood (develop)
有没有简单的方法克隆所有这些分支,而不需要重新克隆整个回购?
thx!
你应该可以做git checkout remote_branch_here。 http://stackoverflow.com/questions/1783405/checkout-remote-git-branch –