Skip to content

Instantly share code, notes, and snippets.

@gut5
Created July 9, 2021 19:29
Show Gist options
  • Save gut5/b36f67cbcb90556fc514fb522282ce7c to your computer and use it in GitHub Desktop.
Save gut5/b36f67cbcb90556fc514fb522282ce7c to your computer and use it in GitHub Desktop.
Useful Git things
# for seeing who has committed how much to your project
git shortlog -sn --all --no-merges
# See who last changed lines 5 through 10 of the buttons’ CSS:
git blame -L5,10 _components.buttons.scss
# easier to see diff changes
git diff -w
git diff --word-diff
# see what everyone worked on
git log --all --oneline --no-merges
# generate changelog
git log --oneline --no-merges <last tag>..HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment