Git/github 配置 逃离我推掉我的手 2022-09-24 02:25 119阅读 0赞 [【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流][GitHub_ - Git_ GitHub_ Git_ _ _ Git] 遇到问题: To git@git.oschina.net:xxxxxx/xxxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@git.oschina.net:yangzhi/hello.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushin hint: to the same ref. You may want to first merge the remote changes (e.g. hint: 'git pull') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. 出现这个log,可能是github上已经有文件了,你这是再push是会报error。可能是添加的Rename文件。这是应该先git pull,然后再git push -u origin master -------------------- 问题: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts。 上述那条警告的大概意思就是:警告:为IP地址192.30.252.128的主机(RSA连接的)持久添加到hosts文件中。 修改文件host: windows:C:\\Windows\\System32\\drivers\\etc linux :vim /etc/hosts 添加一行:192.30.252.128(本机显示的) github.com [原链接][Link 1] [GitHub_ - Git_ GitHub_ Git_ _ _ Git]: http://blog.csdn.net/shulianghan/article/details/18812279#%20%E3%80%90%E4%BB%A3%E7%A0%81%E7%AE%A1%E7%90%86%E3%80%91GitHub%E8%B6%85%E8%AF%A6%E7%BB%86%E5%9B%BE%E6%96%87%E6%94%BB%E7%95%A5%20-%20Git%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85%20GitHub%E6%8F%90%E4%BA%A4%E4%BF%AE%E6%94%B9%E6%BA%90%E7%A0%81%E5%B7%A5%E4%BD%9C%E6%B5%81%E7%A8%8B%20Git%E5%88%86%E6%94%AF%20%E6%A0%87%E7%AD%BE%20%E8%BF%87%E6%BB%A4%20Git%E7%89%88%E6%9C%AC%E5%B7%A5%E4%BD%9C%E6%B5%81 [Link 1]: http://www.cnblogs.com/xiangyangzhu/p/5316041.html
还没有评论,来说两句吧...