0.0.0 • Published 6 years ago

github-uptodate-cli v0.0.0

Weekly downloads
1
License
BSD-3-Clause
Repository
-
Last release
6 years ago

compare local and remote github branches

Features

  • exit 0 if local and remote branches are equal, otherwise exit 1

Usage

usage: github-uptodate

How it works

compare local and remote branches

.git/refs/heads/<branch_name>
.git/refs/remotes/<remote_name>/<branch_name>

Examples

$ cd path/to/repo
$ github-uptodate && echo "uptodate" || git push --all github

update remote info:

$ git remote update --prune

clear remote info:

$ rm -fr .git/refs/remotes/<remote_name>