Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何签出gitflow分支?_Git_Github_Git Flow - Fatal编程技术网

如何签出gitflow分支?

如何签出gitflow分支?,git,github,git-flow,Git,Github,Git Flow,好的,我有一些存储库,我使用git flow创建了一个功能分支 git flow feature start refactor 现在我对它进行了一点尝试,并决定在另一个系统上测试代码 git add code git commit -m 'refactored stuff' git flow feature publish refactor 现在,我在github中有了一个名为feature/refactor的分支。现在我转到另一台机器并浏览到项目文件夹 我怎样才能查到那家新的分店?

好的,我有一些存储库,我使用git flow创建了一个功能分支

 git flow feature start refactor
现在我对它进行了一点尝试,并决定在另一个系统上测试代码

 git add code
 git commit -m 'refactored stuff'
 git flow feature publish refactor
现在,我在github中有了一个名为feature/refactor的分支。现在我转到另一台机器并浏览到项目文件夹

我怎样才能查到那家新的分店?我试过

 git checkout feature/refactor
。。。git不喜欢它,因为论点中有斜杠?我不确定我做错了什么。谁能给我指出正确的方向吗?我也试过

 git flow feature pull refactor

。。。但是git似乎也不喜欢这样。

如果您想从远程获得分支,必须使用
-t
选项指定回购

git checkout -t origin/feature/refactor
您可以更改遥控器名称的来源。此命令在本地存储库中创建一个名为
feature/refactor
的新分支,该分支将连接到您以前发布的远程分支
origin/feature/refactor

gitflow中还有一个要跟踪的命令,您应该尝试一下:

git flow feature track refactor