美文网首页
git-push错误 Every up-to-date

git-push错误 Every up-to-date

作者: jrg陈咪咪sunny | 来源:发表于2018-05-08 13:36 被阅读0次

一开始 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 即可。

image.png

相关文章

网友评论

      本文标题:git-push错误 Every up-to-date

      本文链接:https://www.haomeiwen.com/subject/bbnirftx.html