public
Created

git unpulled && git unpushed

  • Download Gist
gistfile1.txt
1 2 3 4
# ~/.gitconfig
[alias]
unpushed = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git log origin/$PROJ_BRANCH..HEAD"
unpulled = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git fetch && git log HEAD..origin/$PROJ_BRANCH"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.