Skip to content

shunichironomura/git-push-check

Repository files navigation

git-push-check

Crates.io Version Crates.io License

A CLI tool to check if HEAD is pushed to remote.

Tip

Depending on your needs, running git branch -r --contains HEAD and checking if the output contains the remote branch or tag may be enough.

Installation

cargo install git-push-check

Usage

Run git-push-check in a git repository to check if the current HEAD is pushed to the remote.

Tip

You may want to git fetch before running git-push-check.

Options:

  • --only: Which remote references to check: branches, tags, or all (default: all)
  • -h, --help: Print help
  • -V, --version: Print version

Exit codes:

  • 0: HEAD is pushed to the remote
  • 2: HEAD is not pushed to the remote
  • 1: An error occurred

About

A CLI tool to check if HEAD is pushed to remote

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages