Error when “git push” to github

前端 未结 5 1699
不知归路
不知归路 2020-11-29 03:51

I have a public repository at github.com with 2 branches : master and test.

I created a new directory locally and did:

[          


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 04:18

    This error also comes up if you try to push to a new repository without having committed anything first. Try:

    git add -A
    git commit -am 'Initial commit'
    

    And then try your push again.

提交回复
热议问题