码迷,mamicode.com
首页 > 其他好文 > 详细

git常见错误处理

时间:2019-01-04 14:40:52      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:其他   The   sdn   upd   details   tps   http   无法   使用   

 

1.在git push时无法提交代码,相对于git服务器上,本身代码可能不是最新的,因此提交的时候会报以下这个错误 

Updates were rejected because the tip of your current branch is behind

如果和团队其他人确认你可以强制提交,可以使用如下命令提交:

git push -u origin master -f 

 

此问题参考网页:https://blog.csdn.net/shiren1118/article/details/7761203

git常见错误处理

标签:其他   The   sdn   upd   details   tps   http   无法   使用   

原文地址:https://www.cnblogs.com/hbright/p/10218988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!