Git rebase interactive drop vs deleting the commit line

前端 未结 3 1892
执念已碎
执念已碎 2020-12-25 09:26

What is the difference from drop in the Git interactive rebase and just deleting the line of the commit?

3条回答
  •  Happy的楠姐
    2020-12-25 10:20

    Marking a commit as drop is the same as deleting the line.

    The commit will be dropped/ignored.

    See when you scroll down:

    If you remove a line here THAT COMMIT WILL BE LOST.

    The drop command was added in 2.6.0-rc1:

    "git rebase -i" learned "drop commit-object-name subject" command as another way to skip replaying of a commit.

提交回复
热议问题