0.0.0 • Published 6 years ago
github-uptodate-cli v0.0.0
compare local and remote github branches
Features
exit 0
if local and remote branches are equal, otherwiseexit 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>
0.0.0
6 years ago