jezen / git-shmart

The Git commands you know and love, but smarter!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-shmart

A small collection of Git wrappers. Inspired by geelen/git-smart, but implemented in Bash.

Motivation

I use git-smart all the time, but I sometimes have to reinstall it if I switch Ruby versions. I don't think this tool needs Ruby as a dependency.

Also, there are some issues with the original, and the original project seems to be no longer maintained.

TODO

  • Implement shmart-merge command
  • Add to homebrew for easier installation

Usage

Clone this repository somewhere on your machine, and then add the git-shmart directory to your path. The executables should be automatically available to Git.

Upon successful installation, you will have the following commands available:

git shmart-log
git shmart-pull

For convenience, you should add the git-shmart functions as aliases in your ~/.gitconfig file.

# ~/.gitconfig

[alias]
	sl = shmart-log
	sp = shmart-pull

Testing

You'll need to have shunit2 installed. Install it with:

# on MacOS
brew install shunit2

# ...or on Debian
apt-get install shunit2

Then to run the tests:

make test

About

The Git commands you know and love, but smarter!


Languages

Language:Shell 99.5%Language:Makefile 0.5%