| Crates.io | git-upstream |
| lib.rs | git-upstream |
| version | 1.6.0 |
| created_at | 2024-03-28 20:30:50.958228+00 |
| updated_at | 2025-05-07 18:18:13.84266+00 |
| description | A shortcut for `git push --set-upstream REMOTE BRANCH` |
| homepage | |
| repository | https://github.com/9999years/git-upstream |
| max_upload_size | |
| id | 1189344 |
| size | 60,938 |
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.
Statically linked binaries are uploaded to GitHub for each release.
With Nix, you can nix run github:9999years/git-upstream -- ....
You can also cargo install git-upstream.
You can set ~/.config/git-upstream/config.toml to configure git-upstream:
# Remote names to attempt to push to, highest preference first.
remotes = [
# "my-employer",
# "my-github-username",
# "fork",
"origin",
]