Git: remove earlier commit but keep recent changes

前端 未结 8 1494
甜味超标
甜味超标 2020-12-03 10:50

I got some commits in my repository:

like:

A - Added Feature A
B - Removed Feature B
C - Redesigned Feature C
D - Added Feature D
E - Added Feature          


        
8条回答
  •  -上瘾入骨i
    2020-12-03 11:12

    this is called rebasing: you want the -i switch.

    read: https://www.atlassian.com/git/tutorial/rewriting-git-history#!rebase-i

    for a similar question/answer see: https://stackoverflow.com/a/2938393/2536029

提交回复
热议问题