(Git) Make log easier to look into
- Use
git log --all --decorate --oneline --graphto make log prettier and more concise--graph: Show the graph of different branches- Can even run the following to use a shorter alias instead (
git adog):git config [--global] alias.adog 'log --all --decorate --oneline --graph'
- Limit the number of commits shown:
git log -NNdetermines the number of the most recent commits to be shown- Can use in conjunction with
git adog: e.g.git adog -10
Reference:
Written on February 25, 2021
