所以我在一個叫'test_branch'的分支上。Github - Git推送錯誤
我做git add .
和git commit
和一切工作正常。
但是當我做git push
,它給我的錯誤:
! [rejected] acceptance -> acceptance (non-fast-forward)
error: failed to push some refs to '[email protected]:company/sample.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
做git pull
讓我發現,一切都是跟上時代的,做後一推,給了我同樣的錯誤如上。
有人可以幫我這個嗎?
謝謝。
你想推送給主人還是推送到遠程分支? –
我試圖推送到遠程分支... origin/test_branch – Myxtic