git push -u origin master 时候报错 src refspec master does not match any.
因为上面没有版本分支master,首先要去到目标目录,随便git add一个文件,然后git commit -m "msg"。提交到了(
在commit之前要
git config --global user.name "forai"git config --global user.email
)
然后$ git push -u origin master 上面就创建了分支,然后就可以用idea操作,push到remote了。