Break a previous commit into multiple commits

前端 未结 14 2114
渐次进展
渐次进展 2020-12-20 13:09

Without creating a branch and doing a bunch of funky work on a new branch, is it possible to break a single commit into a few different commits after it\'s been committed to

14条回答
  •  难免孤独
    2020-12-20 13:37

    You can do interactive rebase git rebase -i. Man page has exactly what you want:

    http://git-scm.com/docs/git-rebase#_splitting_commits

提交回复
热议问题