Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 668 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 668 Bytes

Custom Git Commands

Custom git commands that can be useful if you are using git cli

Installation

$ curl -s -L https://github.com/jm-factorin/git-cmd/raw/master/git-compare > git-compare
$ chmod +x git-compare
$ sudo mv git-compare /usr/local/bin/

Usage

# Using default (current) branch
$ git compare #https://github.com/jm-factorin/git-cmd/compare/dev
# Using base branch
$ git compare master #https://github.com/jm-factorin/git-cmd/compare/master...dev
# Using base and compare branches
$ git compare base-master dev-new-branch #https://github.com/jm-factorin/git-cmd/compare/base-master...dev-new-branch