1.
问题:
$ git push -u origin master
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to t
he list of known hosts.
To git@github.com:Thorntan/wordpress.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@github.com:Thorntan/wordpress.git'
解决方法:
$ git pull https://github.com/Thorntan/wordpress.git master
2.
Your branch is ahead of 'origin/master' by 1 commit.
说明没有文件需要commit,但是本地仓库 有一个commit ahead原来的master,就是本地仓库有一个提交,比远程仓库要先进一个commit。git push origin master之后,再用git staus,打印信息为:
# On branch master
nothing to commit (working directory clean)