git reset <commit>
to rewind the current branch to the specified <commit>
.--hard
flag to uncommit, unstage and delete changes instead.git reset [--hard] <commit>
git reset 3050fc0d3 # Rewinds back to `3050fc0d3` but keeps changes in the working directory git reset --hard c0d30f305 # Rewinds back to `c0d30f305` and deletes changes
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️