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

前端 未结 30 1747
轮回少年
轮回少年 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:19

    I had the same problem. I did it by the following steps:

    1. git commit -m 'message'
    2. git config --global user.email "your mail"
    3. git config --global user.name "name"
    4. git commit -m 'message'
    5. git push -u origin master
    

提交回复
热议问题