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 [email protected]:Thorntan/wordpress.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to '[email protected]: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)