2015-05-30 33 views
0

我試圖讓github中的一個遠程分支進入我的eclipse,並最終使用eclipse中的上游選項的配置獲取方式,將*作爲本地和遠程分支名稱字段中的值。什麼是無名頭,當我在git中將*從*中拉出時,它們是如何發生的?

正如預期的那樣很拽的所有遠程分支到我的本地庫遠程跟蹤部分旁邊一堆編號牌頭如

origin/refs/pull/1/head 

在他們的所有約30與老款。

在我github回購我沒有可見。

你能幫我理解這些遠程分支是什麼嗎?

回答

0

那些(refs/pull/x)是拉請求。在 「Checking out pull requests locally

git fetch origin pull/ID/head:BRANCHNAME 
git checkout BRANCHNAME 

The remote refs/pull/ namespace is read-only. If you try to push any commits there, you'll see this error:

! [remote rejected] HEAD -> refs/pull/1/head (deny updating a hidden ref) 
error: failed to push some refs to '[email protected]:USERNAME/REPOSITORY.git' 

見GitHub的頁面

相關問題