2016-06-28 157 views
0

我有点混淆什么git team-fetch在分配git中做什么? 我在某处看到过这样的命令。git中的“git team-fetch”命令是做什么的?

该命令是否将branch1代码读入NewBranch?

git team-fetch xyz branch1:NewBranch

+0

你使用的是什么版本的'git'?据我所知,'git team-fetch'不是一个有效的命令。也许这是你机器上的别名? - 您可以使用'git config --get-regexp^alias \ .'来显示所有别名。 –

+0

我正在使用v2.6.2,并试图启动git config --get-regexp^alias \。它给我显示错误:参数错误数 –

回答

1

看看你的〜/ bin文件夹中有一个叫做“git-team-fetch”的脚本。我直接从文档中找到它:

Git enhancement - Fetch branches from other team members repositories 
This script extracts the current URL from origin and tries to find 
the one mapped to a user. e.g. if the user enters for an application repo: 
    git team-fetch user mybranch 
the real git command would look like: 
    git fetch [email protected]/$application.git mybranch 
+0

谢谢@DieselPower :) –

+0

这个命令从哪里来的?这是一些奇怪的扩展包吗? –

+0

这是项目特定的,我在sarvesh的同一平台上工作;)所以这是没有问题的,应该在stackoverflow上询问,应该在特定的聊天室中询问;) – DieselPower