Git - Use like a pro

Git - Use like a pro

Git - Use like a pro

git log

git log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%an%C(reset)%C(bold yellow)%d%C(reset) %C(dim white)- %s%C(reset)' --all

git unwatch all from an organisation

Navigate to https://github.com/watching . You have an option to watch and unwatch all or selectively.

git log

git log --graph --decorate --oneline

# git log with patch output
git log --patch -2 # -2 represents number of log entries 
git log -p -2
# git log with stat
git log with --stat

git log --pretty=format:"%h - %an, %ar : %s"

git log --pretty=format:"%h %s" --graph

git log --since=4.weeks

# For example, if you want to see which commits modifying test files in the Git source code history were committed by Sirajudheen Mohamed Ali in the month of December 2023 and are not merge commits, you can run something like this
git log --pretty="%h - %s" --author='Sirajudheen Mohamed Ali' --since="2023-12-01" \
--before="2024-01-01" --no-merges -- t/

For more info visit here