git push -u origin master报错src refspec master does

git push -u origin master 时候报错 src refspec master does not match any.

因为Git@OSC上面没有版本分支master,首先要去到目标目录,随便git add一个文件,然后git commit -m "msg"。提交到了(

在commit之前要

git config --global user.name "forai"
git config --global user.email [email protected]

然后$ git push -u origin master Git@OSC 上面就创建了分支,然后就可以用idea操作,push到remote了。

你可能感兴趣的:(git push -u origin master报错src refspec master does)