Crates.io | git-upstream |
lib.rs | git-upstream |
version | 1.2.0 |
source | src |
created_at | 2024-03-28 20:30:50.958228 |
updated_at | 2024-09-23 01:25:35.485715 |
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,183 |
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",
]