我的團隊中的一位開發人員遇到以下問題。他們有能力拉一個遠程分支,說它是最新的,但他們不能推送到遠程分支。以下是他們在Windows git命令提示符下獲得的內容Git推不工作,但git pull在遠程分支上
[email protected] ~/documents/workspace/my-repository (workflowNewCOBRequest1)
$ git remote show origin workflowNewCOBRequest1
Enter passphrase for key '/c/Users/MY/.ssh/id_rsa':
* remote origin
Fetch URL: [email protected]:myorg/my-repository.git
Push URL: [email protected]:myorg/my-repository.git
HEAD branch: master
Remote branches:
2_Initial_COB_Submission tracked
COB_VF_email_template new (next fetch will store in remotes/origin)
Team-approval tracked
develop tracked
master tracked
testing tracked
workflowNewCOBRequest1 tracked
Local branches configured for 'git pull':
develop merges with remote develop
master merges with remote master
workflowNewCOBRequest1 merges with remote workflowNewCOBRequest1
Local refs configured for 'git push':
Team-approval pushes to Team-approval (up to date)
develop pushes to develop (local out of date)
master pushes to master (up to date)
[email protected] ~/documents/workspace/my-repository (workflowNewCOBRequest1)
$ git push origin workflowNewCOBRequest1
Enter passphrase for key '/c/Users/MY/.ssh/id_rsa':
fatal: workflowNewCOBRequest1 cannot be resolved to branch.
fatal: The remote end hung up unexpectedly
我搜索了互聯網,找不到類似這樣的東西。有任何想法嗎?
感謝
保羅
編輯..認爲問題是沒有參考推送該分支(試圖爲您找到一個修復程序!) –
命令爲您嘗試:) –
該命令做了一些事情說這是所有最新的,但我已經找到他已經以各種方式克服了他的回購(不遵循說明;-))謝謝你的幫助! – pbattisson