Cannot push to GitHub - keeps saying need merge

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

    Have you updated your code before pushing?

    Use git pull origin master before you push anything.

    I assume that you are using origin as a name for your remote.

    You need to pull before push, to make your local repository up-to-date before you push something (just in case someone else has already updated code on github.com). This helps in resolving conflicts locally.

提交回复
热议问题