An open API service indexing awesome lists of open source software.

https://github.com/hankchanocd/git-stack

Compare against master branch with fzf
https://github.com/hankchanocd/git-stack

branch commit fzf git

Last synced: about 2 months ago
JSON representation

Compare against master branch with fzf

Awesome Lists containing this project

README

          

# git-stack    ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/hankchanocd/git-stack.svg) [![Build Status](https://travis-ci.org/hankchanocd/git-stack.svg?branch=master)](https://travis-ci.org/hankchanocd/git-stack) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![Github issues](https://img.shields.io/github/issues/hankchanocd/git-stack.svg)](https://github.com/hankchanocd/git-stack/issues) [![CodeFactor](https://www.codefactor.io/repository/github/hankchanocd/git-stack/badge)](https://www.codefactor.io/repository/github/hankchanocd/git-stack)

> 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`](https://github.com/junegunn/fzf) is installed globally. `git stack` won't work if `fzf` is not installed.

## Usage

```
git-stack []

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.
```bash
$ 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`](http://commitizen.github.io/cz-cli/) and [`ghooks`](https://github.com/ghooks-org/ghooks).

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

## Others

See [Dotfiles](https://gitlab.com/hankchanocd/dotfiles) for my other works on `git`.

See [git-overview](https://github.com/hankchanocd/git-overview) - A quick git repository insight at terminal.

See [git-commands](https://github.com/hankchanocd/git-commands) - Fuzzy search git commands with fzf.

## License

[MIT](./LICENSE)