Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 7 lines (5 sloc) 191 Bytes
#!/bin/bash
#
# returns the upstream branch name if any
remote=$("$GIT_EXE" rev-parse --symbolic-full-name --abbrev-ref @{u} 2> /dev/null)
[[ $remote == "@{u}" ]] && echo "" || echo $remote
Jump to Line
Something went wrong with that request. Please try again.