Cannot push to GitHub - keeps saying need merge

后端 未结 30 2716
天命终不由人
天命终不由人 2020-11-22 00:09

I\'m new to GitHub. Today I met some issue when I was trying to push my code to GitHub.

Pushing to git@github.com:519ebayproject/519ebayproject.git
To git@gi         


        
30条回答
  •  耶瑟儿~
    2020-11-22 01:04

    I experienced the very same problem and it turned out I was on a different (local) branch than I thought I was AND the correct local branch was behind in commits from remote.

    My solution: checkout the correct branch, cherry-pick the commit from the other local branch, git pull and git push

提交回复
热议问题