git flow-如何开始处理现有功能分支
我想开始研究另一个开发人员的特性分支(我们使用git和git流)。 AFAIK分支已发布(推送)。我如何将其获取到本地存储库 我试过:git flow-如何开始处理现有功能分支,git,git-flow,Git,Git Flow,我想开始研究另一个开发人员的特性分支(我们使用git和git流)。 AFAIK分支已发布(推送)。我如何将其获取到本地存储库 我试过: git flow feature pull origin/XXXXXX-1003b fatal: 'origin/XXXXXX-1003b' does not appear to be a git repository fatal: The remote end hung up unexpectedly Failed to pull from remote '
git flow feature pull origin/XXXXXX-1003b
fatal: 'origin/XXXXXX-1003b' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Failed to pull from remote 'origin/XXXXXX-1003b'.
以及:
请告知。谢谢如果您的回购协议中没有分支,并且您想要获得它,您必须使用
git flow track
。这应该起作用:
git flow feature track XXXXXX-1003b
git流特征跟踪
要跟踪远程设备上的现有功能分支,请使用功能跟踪
:
git flow feature track xxxxxx-1003b
或者,按照“正常方式”进行操作:
即,更新远程来源,然后签出与同事的分支相对应的分支。您也可以使用功能/分支名称(1):
(1) 可能是一个新的git流功能,我回答了一个老问题。什么是
-1003b
意思?我在另一个答案中看到了这一点,并认为这只是一个随机的字母数字,但它们是相同的,所以它有一些意义吗?
git flow feature track xxxxxx-1003b
git fetch origin
git branch -a # list all branches
git checkout feature/xxxxxx-1003b
git flow feature track featurename