Last active
August 8, 2020 08:48
-
-
Save iamdylanngo/e17fb0565c4892f678bdd7375a0a8cc8 to your computer and use it in GitHub Desktop.
change-history-commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log | |
git reset --soft HEAD~N | |
Change code, add everything and commit code | |
git add <file> | |
git commit -m "new commit" | |
git push orign <branch> -f | |
N: number commit you want to reset | |
# Example: You want to reset 3 commit | |
get reset --soft HEAD~3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment