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
- Host: GitHub
- URL: https://github.com/hankchanocd/git-stack
- Owner: hankchanocd
- License: mit
- Created: 2018-11-11T19:46:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T20:12:45.000Z (almost 7 years ago)
- Last Synced: 2025-04-02T22:33:27.194Z (7 months ago)
- Topics: branch, commit, fzf, git
- Language: Shell
- Homepage:
- Size: 311 KB
- Stars: 19
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-stack  [](https://travis-ci.org/hankchanocd/git-stack) [](http://commitizen.github.io/cz-cli/) [](https://github.com/hankchanocd/git-stack/issues) [](https://www.codefactor.io/repository/github/hankchanocd/git-stack)
> Compare against master branch with fzf
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)