100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > git push提交 error: failed to push some refs to

git push提交 error: failed to push some refs to

时间:2024-02-18 00:08:11

相关推荐

git push提交 error: failed to push some refs to

异常信息:

error: failed to push some refs to 'https://git.*****.com/dp/service/springbootDemo.git'

hint: Updates were rejected because the remote contains work that you do

问题分析:

命令处理的过程:

git pull –rebase origin master意为先取消commit记录,并且把它们临时 保存为补丁(patch)(这些补丁放到”.git/rebase”目录中),之后同步远程库到本地,最后合并补丁到本地库之中。

******@xu MINGW64 /e/workspace/springboot/demo (master)$ git pull --rebase origin masterwarning: no common commitsremote: Enumerating objects: 3, done.remote: Counting objects: 100% (3/3), done.remote: Compressing objects: 100% (2/2), done.remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0Unpacking objects: 100% (3/3), done.From https://git.*******.com/dp/service/springbootDemo* branch master-> FETCH_HEAD* [new branch]master-> origin/masterFirst, rewinding head to replay your work on top of it...Applying: ************

最后再提交代码到远程服务。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。