Cannot push to GitHub - keeps saying need merge

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

    git pull prints Already up-to-date

    solution:

    you might be created a repository/project in remote(server) and added some file there, Then again created a Folder in your local and initialised git git init - this is the mistake, you should not create git init in local, instead clone the project to your local using git clone

    then pull

提交回复
热议问题