Git/GitHub can't push to master

前端 未结 11 1845
抹茶落季
抹茶落季 2020-12-07 07:09

I am new to Git/GitHub and ran into an issue. I created a test project and added it to the local repository. Now I am trying to add files/project to the remote repository.

11条回答
  •  余生分开走
    2020-12-07 07:49

    Use Mark Longair's answer, but make sure to use the HTTPS link to the repository:

    git remote set-url origin https://github.com/my_user_name/my_repo.git
    

    You can use then git push origin master.

提交回复
热议问题