Skip to content

andys8/git-brunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 7, 2020
b128db9 · Nov 7, 2020
Oct 15, 2020
Nov 7, 2020
Oct 15, 2020
Nov 6, 2020
Nov 6, 2020
Jan 10, 2020
Aug 11, 2019
Nov 7, 2020
Nov 7, 2020
Nov 7, 2020
Oct 12, 2020
Nov 7, 2020
Aug 12, 2020
Oct 5, 2020
Oct 5, 2020

Repository files navigation

git-brunch Travis Actions

A git branch checkout command-line tool

screenshot

Features

  • Checkout local or remote branch
  • Rebase onto a branch
  • Search for a branch
  • Delete a branch
  • Fetch / Update

Usage

Run git-brunch or git brunch.

Git alias (optional)

git config --global alias.b brunch

Installation

Download binary

  1. Download from releases
  2. Rename to git-brunch
  3. chmod +x git-brunch
  4. Add to PATH

Arch Linux

git-brunch is in the AUR. Install it with e.g. yay -S git-brunch or pamac install git-brunch.

Install

stack install git-brunch # --resolver=lts-16.11

Clone and install from source

git clone https://github.com/andys8/git-brunch.git
cd git-brunch
stack install

Install with nix-env

nix-env -f "<nixpkgs>" -iA haskellPackages.git-brunch

Clone and install with nix

git clone https://github.com/andys8/git-brunch.git
cd git-brunch
nix-env -if .

Development

Run application

stack run

Run tests

stack test --file-watch

Build statically linked

stack install --flag git-brunch:static

Generate nix

cabal2nix --shell . > default.nix

Release

  • Bump version in package.yaml and default.nix
  • stack build
  • Create a commit v0.0.0
  • Create a tag v0.0.0
  • Push commit and push tag
  • Release on github will be created by CI
  • Update release description
  • stack upload .
  • Update AUR

Related projects

  • git-gone: Lists or removes "gone" branches, that is, local branches which used to have an upstream branch on a remote which is now removed.
  • lazygit: Terminal UI for git commands
  • gitui: Terminal UI focused on speed in giant repositories