Message 'src refspec master does not match any' when pushing commits in Git

前端 未结 30 1812
轮回少年
轮回少年 2020-11-22 02:49

I clone my repository with:

git clone ssh://xxxxx/xx.git 

But after I change some files and add and commit them,

30条回答
  •  灰色年华
    2020-11-22 03:02

    In the scenario where you check out the code from an external repository (GitHub), and want to import it in personal / internal system, this command really shines:

    git push --all origin
    

    This pushes all local branches to the remote, without checking refs and without insisting on commits.

提交回复
热议问题