From: Phillip Susi Date: Thu, 06 Apr 2023 15:48:54 GMT Subject: Re: git revert with partial commit. Message-ID: <87355ddn6y.fsf@vps.thesusis.net> In-Reply-To: Hongyi Zhao writes: > Because the commit I want to revert is done a long time ago, which is > not the parent of the commit I'm currently on, so I can't use the `~1` > which indicates that I want to go back one commit from my current > position. You *can* use HEAD~1. After the git revert, a new commit has been created, and so HEAD~1 refers to the state of things before running git revert.