Last active
August 9, 2017 15:34
-
-
Save marcusshepp/dada78028bd68453051b65fcdfdba085 to your computer and use it in GitHub Desktop.
compare local branch git log to remote branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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