简体   繁体   English

在我做了git rebase后,它应该只有一个提交

[英]after I did git rebase it should so only one commit

  • I followed the steps for git rebase... now when i do git status it shows. 我按照git rebase的步骤进行了...现在,当我执行git状态时,它会显示出来。
  • and then git log it shows two commits. 然后git log它显示两个提交。
  • after I did git rebase it should so only one commit right?? 在我做了git rebase之后它应该只有一个提交权吗?
  • if it should one commit I would have executed this comment **git push origin [swim-kick] -f ** 如果它应该一个提交我会执行此评论** git push origin [swim-kick] -f **
  • now how should I need to proceed?? 现在我该怎么办呢?
git log --oneline --graph --decorate=short --all 

* aaaa (HEAD -> swim-kick, origin/swim-kick) swim: width issue
* bbbb swim: functionError issue
*   cccc Merge branch 'swim-kick' of gitlab.usaa.com:country into swim-kick
|\
| * dddd swim: border for close
* | eeee swim: border for close
|/

It would be easier if you could show the commands that you executed. 如果您可以显示您执行的命令会更容易。 The steps you would follow: 您将遵循的步骤:

git rebase origin/master -i

pick the first commit, squash or fixup the the rest of the commits. 选择第一次提交,压缩或修复其余的提交。

If you followed the above steps, the other possibility could be that you if you branched out of branch A and not master, it shows the commits of branch A as well 如果你按照上面的步骤,另一种可能性是,如果你分支出分支A而不是主分支,它也会显示分支A的提交

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该如何在JavaScript中一个接一个地执行函数? - How should I execute functions only one after another in JavaScript? 我执行git init并创建新分支后,流星崩溃了 - Meteor crashed after I did a git init and created a new branch 如果其中只有一个 object,我应该 map 一个数组吗? - Should I map an array if there is only one object in it? 第二次提交后,每当尝试获取登录页面或注册页面时,我都会收到404错误 - I get a 404 error whenever i try to get login page or signup page, after I did my second commit 如果我只使用一个操作员,我应该使用管道操作员吗? - Should I use the pipe operator if I only use one operator? 我应该如何重构这段代码,以便只更改每个实例的参数? - How should I refactor this code so I only change the parameters for each instance? 我应该在哪里将只需要一页的JavaScript例程放在哪里? - Where should I put a JavaScript routine needed only on one page? 如果我只有一个值 [on hold],默认情况下应该只显示一个值 - By default should display only one value if I have only one value [on hold] 反应导航:“你应该只渲染一个导航器” - 但我只有一个 - React-navigation: “You should only render one navigator” - but I have only one 第二个ajax调用不起作用,仅在第一个成功后才应调用第二个 - Second ajax call is not working , the second one should be called only after the first one is sucess
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM