Jenkins Git插件根据我的Ref Spec在控制台输出中生成了以下命令:
What's the difference between below 2 commands? Their output looks little different. I have given their output below:
Command 1:
git fetch --no-tags --progress repo.git +refs/heads/qa:refs/remotes/origin/qa --depth=1
Output:
From <repo> * [new branch] qa -> origin/qa
Command 2:
git fetch --no-tags --progress repo.git refs/heads/qa --depth=1
Output:
From <repo> * branch qa -> FETCH_HEAD
What does FETCH_HEAD here mean?
I believe
refs/heads/qa
is local working copy of 'qa' branch andrefs/remotes/origin/qa
is remote 'qa' branch. But, what does this convention imply?+refs/heads/qa:refs/remotes/origin/qa