在rebase中使用git重新排序提交

时间:2018-06-06 09:02:33

标签: git

git log --decorate --oneline --graph --all

* d233053 (HEAD -> crud-phases-tasks) crud phases
* 68a0e7f added some changes
* 45501cb added right menu
* d26549e fixed backend permissions
* f4f52e2 crud tasks and fixed eslint and rubocops errors
*   9fac2e9 (root/dev, dev) Merge branch 'fguerrero/layout' into 'dev'
|\  
| * cc98c21 Improve notifications component
* |   f5eb054 Merge branch 'padame/refactor-request-versions' into 'dev'
|\ \  
| * | 941adc9 H#260 Request list

当我运行git rebase -i dev时,我得到了这个:

pick f4f52e2 crud tasks and fixed eslint and rubocops errors
pick d26549e fixed backend permissions
pick 45501cb added right menu
pick 68a0e7f added some changes
pick d233053 crud phases

我上次提交的是crud阶段。我需要像第一次提交一样的crud阶段,如下所示:

reword d233053 crud phases
squash f4f52e2 crud tasks and fixed eslint and rubocops errors
squash d26549e fixed backend permissions
squash 45501cb added right menu
squash 68a0e7f added some changes

0 个答案:

没有答案