- Use when you want to store your local changes, but revert back to the current state of the HEAD commit
- use this when you want to reapply the most recent stash you made.
git stash apply stash@{2}
will apply the second most recent, etc.
- formats git log into a more readable format for something like a release announcement. Groups commits by author and title
- you can amend files to the previous commit. If not message is given it will use the previous commit message
- throws away all uncommitted changes and moves HEAD back to previous commit
- moves HEAD back, but stages changes. You can git commit after this and it should push your changes up
- throws all uncommitted changes away and moves HEAD back two commits
-
git log -p shows the changes made between each commit
-
git log --pretty=oneline show the default one-line format for commits
-
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit shows the graph of branches + custom formatting with colors!