Cannot push to GitHub - keeps saying need merge

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

    I mentioned this in my tutorial, How To Use GitHub: A tutorial for beginners.

    When you create a new repository on GitHub, GitHub may ask you to create a readme file. If you create a readme file directly on GitHub, then you will need to first make a ‘pull’ request before the ‘push’ request will be successful. These commands will ‘pull’ the remote repository, merge it with your current files, and then ‘push’ all the files back to GitHub:

    git pull https://github.com/thomas07vt/MyFirstRepo.git master
    
    git push https://github.com/thomas07vt/MyFirstRepo.git master
    

提交回复
热议问题