A handful of handy git commands that I don’t use all that often but want to keep track of:
Stashing
Stash a single file
git stash push -m 'message here' -- path/to/file
Drop a specific stash
First figure out the id of the stash you want to drop with git stash list
, then issue the following command
git stash drop stash@{n}
Editing Commits
Changing author of already pushed commit
If you need to change the author of a commit → Continue reading “git Cheat Sheet”