git-crecord

Inspired by crecord mercurial extension, git-crecord is an easy way to commit/stage git changes partially.

Screenshot

Installation

$ gem install git-crecord

Usage

$ git crecord
$ git crecord --untracked-files  # show untracked files
$ git crecord --reverse          # unstage hunks

Key-bindings:

  q      - quit
  s      - stage selection and quit
  c      - commit selection and quit
  j / 

Configuration

# configure tab-width to four spaces, default is two spaces:
$ git config --global crecord.tabwidth 4

Development

$ git clone https://github.com/mbrendler/git-crecord
$ cd git-crecord
$ bundle install
$ ln -s bin/git-crecord /usr/bin/git-crecord

Tests:

$ bundle exec rake