#### Rename branch ``` git branch -m old_branch new_branch # Rename branch locally git push origin --delete old_branch # Delete the old branch git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote ``` [Stackoverflow](http://stackoverflow.com/a/16220970) #### Change commit messages ``` git commit --amend -m "New commit message" ``` [Change commit message](http://stackoverflow.com/a/179147/3155650) Github: [Changing a commit message](https://help.github.com/articles/changing-a-commit-message/)