git-push错误 Every up-to-date
2018-05-08 本文已影响0人
jrg陈咪咪sunny
一开始 git
服务器仓库是完全空的,
不包含任何一个分支(branch
),因此刚开始 Push
时需要指定一个。
执行 git remote -v
后看到自己的 remote
端名字为 origin
:
$ git remote -v
origin https://code.google.com/p/micolog2 (fetch)
origin https://code.google.com/p/micolog2 (push)
执行 git branch
后看到自己当下用的分支是 master
:
$ git branch
* master
因此在本地
git add .
git commit -m "cmm"
后,再执行 git push origin master
即可。
