报错如下:
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
原因:
第一次push
解决:
$ git add .
$ git commit -m "更新日志"
$ git remote add origin '仓库url'
$ git push -u origin 对应远程分支名
后面就可以直接push:
$ git add .
$ git commit -m "更新日志"
$ git push