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

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

#1263 in Command line utilities

Download history 275/week @ 2024-03-28 44/week @ 2024-04-04

319 downloads per month

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

~10–23MB
~291K SLoC