Change the last commit message
Rewrite the message of the latest commit. Safe only before you push
git commit --amend -m 'new message'
More git commands
-
git rebase -i HEAD~5Squash, reorder, or edit last 5 commits
-
git stash push -m 'wip: feature-x' -- src/Stash only the changes in src/ under a clear name
-
git stash list && git stash apply stash@{2}List stashes, then apply one by its index
-
git cherry-pick A^..BApply commits from A to B, including both, onto the current branch
-
git blame -L 10,25 --date=short src/main.pyShow the author and date for lines 10-25