Cannot push to GitHub - keeps saying need merge

后端 未结 30 2703
天命终不由人
天命终不由人 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 00:56

    If by any chance git pull prints Already up-to-date then you might want to check the global git push.default param (In ~/.gitconfig). Set it to simple if it was in matching. The below answer explains why:

    Git - What is the difference between push.default "matching" and "simple"

    Also, it is worth checking if your local branch is out of date using git remote show origin and do a pull if needed

提交回复
热议问题