commit-messages-guide
commit-messages-guide copied to clipboard
Use of Git Log and Status
Hi,
Great guide! The source material gives a lot more context to this piece. You've covered every aspect on commits, but I think a little bit more emphasize on usage of git log and git status would make a huge difference. Though this is mentioned in the source materials, having this before rebase and merge will provide more clarity. Adding shortcuts for logs would enable insights to effectively rebase or merge commits as well. A few shortcuts you could add, git log --oneline git log --all git log --graph git log --stat git log -p
Interesting idea. Improved example:
git log --pretty=format:"%h (%Cgreen%an, %Cblue%ad%Creset) %s" --graph --date=short -20
and alias:
git config --global alias.lg "log --pretty=format:"%h (%Cgreen%an, %Cblue%ad%Creset) %s" --graph --date=short -20"
git lg
Output: