异常信息:

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 master
warning: no common commits
remote: 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 0
Unpacking objects: 100% (3/3), done.
From https://git.*******.com/dp/service/springbootDemo
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
First, rewinding head to replay your work on top of it...
Applying: ************

  在这里插入图片描述

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

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐