Skip to content

Latest commit

 

History

History

git-upstream-branch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git upstream-branch

Get the upstream branch name

Git alias:

upstream-branch = !git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD)

Example:

git upstream-branch
origin/main

Compare: