Giter Club home page Giter Club logo

git-brunch's Introduction

git-brunch Actions

A git command-line tool to work with branches

screenshot

Features

  • Quickly checkout local or remote branch
  • Merge or rebase a branch
  • Search for a branch
  • Delete a branch
  • Fetch / Update

Usage

Run git-brunch or git brunch.

Git alias (optional)

An alias like git b (or gb) is a good idea to quickly access the tool.

git config --global alias.b brunch

Installation

The installation is possible in multiple ways, and there are binaries available to download.

Download binary

  1. Download from releases
  2. Rename the file to git-brunch
  3. Make it executable with chmod +x git-brunch
  4. Add to your PATH

Arch Linux

git-brunch is in the AUR

yay -S git-brunch
pamac install git-brunch

FreeBSD

git-brunch can be installed from the official FreeBSD package repository

pkg install hs-git-brunch

git-brunch is part of the nix package manager

nix-env -i git-brunch

git-brunch can installed with the Haskell build tool stack

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

Install from source

git-brunch can be installed from source. It can be forked and modified, if you like to.

git clone https://github.com/andys8/git-brunch
cd git-brunch
stack install
# or 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

git-brunch's People

Contributors

andreas-ebot7 avatar andys8 avatar arrowd avatar hasufell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

git-brunch's Issues

Merge feature

Hello.

It'd be great if git-brunch would support merging feature, which would do the same thing as git merge somebranch from command line. This way it'd be possible to quickly merge and delete feature branches.

Doesn't build with Brick 1.5/1.6

GHC 9.2.7, cabal-install 3.10

[4 of 5] Compiling GitBrunch        ( app/GitBrunch.hs, /wrkdirs/usr/ports/devel/hs-git-brunch/work/git-brunch-1.6.0.0/dist-newstyle/build/x86_64-freebsd/ghc-9.2.7/git-brunch-1.6.0.0/x/git-brunch/build/git-brunch/git-brunch-tmp/GitBrunch.o )

app/GitBrunch.hs:61:23: error:
    * Expecting one more argument to `D.Dialog DialogOption'
      Expected a type, but `D.Dialog DialogOption' has kind `* -> *'
    * In the first argument of `Maybe', namely
        `(D.Dialog DialogOption)'
      In the type `Maybe (D.Dialog DialogOption)'
      In the definition of data constructor `State'
   |
61 |   , _dialog :: Maybe (D.Dialog DialogOption)
   |                       ^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build exe:git-brunch from git-brunch-1.6.0.0.

Search Feature

  • / should start a search and show a text field
  • Maybe highlighting or filtering on type
  • Enter will filter branches, maybe mark selection
  • Esc will cancel the search
  • Maybe reset search with e.g. Space or /<Enter>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.