Last active
January 28, 2020 18:13
-
-
Save cjlaborde/e5accd26abb1ff90c12b3309f656a11c to your computer and use it in GitHub Desktop.
This file contains 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
### Checks your account info. | |
git config --list | |
### Rename past Commits | |
1)git rebase --interactive HEAD~2 | |
put reword in front of the commit you want to change name | |
2) another window again with the title of the commit you wrote reword in front | |
3) git push --force | |
### Force Push | |
git push -f origin master | |
### Reset will rewind your current HEAD branch to the specified revision. | |
git reset --soft HEAD~1 | |
### If you don't want to keep these changes, simply use the --hard flag. | |
git reset --soft HEAD~1 | |
### Rewrite last commit | |
git commit --amend | |
### Rewrite content of last commit including title | |
git rebase --interactive HEAD~1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rename past Commits