Reset last git commit | The Dev Tool | Toolel.com
To reset last local git commit but keep changes
git reset HEAD^
git reset
without a --hard
or --soft
moves your HEAD to point to the specified commit, without changing any files
To reset pushed commit
git revert <commit_hash>
This will create a new commit which reverts the changes of the commit you specified
Created by: Anastasiia
Comments
This page is only partially working without JavaScript. It will show content, but the tools and interactivity cannot be shown without JavaScript enabled. Please enable JavaScript for this page. About Us