Skip to content

hankchanocd/git-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-stack    GitHub tag (latest SemVer) Build Status Commitizen friendly Github issues CodeFactor

Compare against master branch with fzf

demo

Have a quick glance at the differences between develop and master branch with git stack.

Install

Clone the repo, and run npm run transfer to transfer ./git-stack to ~/bin, or manually invoke ./script/transfer.sh if you are not familiar with npm.

If you have a more desired PATH for storing scripts, configure ./script/transfer.sh directly or ignore the transfer instructions.

Requirements

Make sure fzf is installed globally. git stack won't work if fzf is not installed.

Usage

git-stack [<options>]

Compare against master branch with fzf

where:
	-h  show this help text
	-f  fuzzy select a branch to compare with

A simple one-liner is all you need.

$ git stack

git stack compares the current branch against master. git stack -f, however, will ask for input from a fuzzy list of all available branches, to be compared against master.

Changelog

2018-Nov-11: v1 published. Automate commit and file transfer process with commitizen and ghooks.

2018-Nov-13: -f created for fuzzy selecting branch to compare with master.

Others

See Dotfiles for my other works on git.

See git-overview - A quick git repository insight at terminal.

See git-commands - Fuzzy search git commands with fzf.

License

MIT