#git #remote #branch #push #shortcut #set-upstream #fail-fast

app git-upstream

A shortcut for git push --set-upstream REMOTE BRANCH

2 stable releases

1.1.0 Mar 28, 2024
1.0.0 Mar 28, 2024

#1773 in Command line utilities

MIT license

17KB
146 lines

git-upstream

Crates.io

A shortcut for git push --set-upstream "$(git remote)" "$(git rev-parse --abbrev-ref HEAD)".

Usage: git-upstream [--fail-fast] [--branch BRANCH] [--remote REMOTE].

Unless --fail-fast is given, all remotes are tried until one succeeds.

Dependencies

~9–23MB
~292K SLoC