Skip to main content

compare local and remote github branches

Project description

Install

$ [sudo] pip install github-uptodate-cli

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>

Project details


Release history Release notifications

This version
History Node

0.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
github-uptodate-cli-0.0.0.tar.gz (1.5 kB) Copy SHA256 hash SHA256 Source None Jun 9, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page