Git Bash 提示 Warning: Permanently added the RSA host key for IP address

我的git出问题了(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) 从重新设置SSH到改Hosts全试过了。

Warning: Permanently added the RSA host key for IP address ‘192.30.253.113’ to the list of known hosts.
To github.com:LolitaSian/Java-notes.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘[email protected]:LolitaSian/Java-notes.git’
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.


To github.com:LolitaSian/Java-notes.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘[email protected]:LolitaSian/Java-notes.git’
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.

  上边这两种报错,我百度到的解决方法都是改SSH啊,修改hosts啊。但是仔细捣鼓了一下发现是远程仓库修改了,虽然那我并没有碰我的远程仓库。可能是我设了pages的缘故?
  把远程仓库下拉一下 (´・ω・`) 然后再推就好使了。

你可能感兴趣的:(Git)