什么是" git team-fetch"命令在git中执行?

时间:2016-06-28 08:32:28

标签: git git-commands

我有点混淆git team-fetch在分配git时做了什么? 我在某个地方见过这样的命令。

此命令是否将branch1代码提取到NewBranch?

  

git team-fetch xyz branch1:NewBranch

1 个答案:

答案 0 :(得分: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 git@giturl/$application.git mybranch