Git: remove earlier commit but keep recent changes

前端 未结 8 1509
甜味超标
甜味超标 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-03 11:22

    If you use TortoiseGit in Windows, you can right-click on the Git folder then click TortoiseGit > Show log. You can view all of the commits done before and then check the commit you'd want to revert to.

    Click on the commit and you can see the changed files below. Click right on the files to be reverted and then click revert to parent revision.

提交回复
热议问题