git-upstream

Crates.iogit-upstream
lib.rsgit-upstream
version1.2.0
sourcesrc
created_at2024-03-28 20:30:50.958228
updated_at2024-09-23 01:25:35.485715
descriptionA shortcut for `git push --set-upstream REMOTE BRANCH`
homepage
repositoryhttps://github.com/9999years/git-upstream
max_upload_size
id1189344
size60,183
Rebecca Turner (9999years)

documentation

README

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.

Installation

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.

Configuration

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",
]
Commit count: 10

cargo fmt