how to change your project to the last github commit code example Example: edit last commit message git commit --amend -m "New commit message."