Rename/Edit/Squash commit(s)
Renaming the latest commit
git commit --amend -m "New commit message"
git push --force origin example-branchRenaming any commit
git rebase -i HEAD~2 # Replace 2 with the number of commits you want to go back(Squash) Replacing x last commits with 1 new single commit

Last updated