Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 408 Bytes

index.md

File metadata and controls

22 lines (14 loc) · 408 Bytes

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: