Tracked upstream branch branchnameupstream

suggest change
$ git log @{upstream}..       # what was done locally and not yet published, current branch
$ git show master@{upstream}  # show upstream of branch 'master'

The suffix @{upstream} on a branch name (short form <branchname>@{u}) is the upstream that branch is set to track (branch.<name>.remote and branch.<name>.merge, or git branch --set-upstream-to=<branch>). With no branch name, Git uses the current branch.

Together with syntax for revision ranges it is very useful to see the commits your branch is ahead of upstream (commits in your local repository not yet present upstream), and what commits you are behind (commits in upstream not merged into local branch), or both:

$ git log --oneline @{u}..
$ git log --oneline ..@{u}
$ git log --oneline --left-right @{u}...  # same as ...@{u}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents