Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Last active August 9, 2017 15:34
Show Gist options
  • Save marcusshepp/dada78028bd68453051b65fcdfdba085 to your computer and use it in GitHub Desktop.
Save marcusshepp/dada78028bd68453051b65fcdfdba085 to your computer and use it in GitHub Desktop.
compare local branch git log to remote branch
git log @{u}..
# @{u} is a shortcut to the upstream branch that this current branch is tracking.
# .. specifies a range of commits.
# same as saying git log @{u}..HEAD
# comparing where HEAD is on this branch to where HEAD is on the remote tracked branch.s
# https://stackoverflow.com/questions/19474577/what-does-the-argument-u-mean-in-git/19474730#19474730
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment