新装的git在执行git commit -m "xxx" 时,需要提交用户邮箱和用户名,不然会报错:
error: src refspec master does not match any.
error: failed to push some refs to
因为没有委托成功,本地仓库是空的,所以配置了下邮箱和用户名才可以成功:
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
之后按照以下博主的步骤进行操作: