Skip to content

Instantly share code, notes, and snippets.

@cjlaborde
Last active January 28, 2020 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjlaborde/e5accd26abb1ff90c12b3309f656a11c to your computer and use it in GitHub Desktop.
Save cjlaborde/e5accd26abb1ff90c12b3309f656a11c to your computer and use it in GitHub Desktop.
### 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
@cjlaborde
Copy link
Author

Rename past Commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment