Giter Club home page Giter Club logo

git-shmart's Introduction

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

git-shmart's People

Contributors

jezen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

macovsky

git-shmart's Issues

Tests should be run via bash?

If I may speak STDOUT to you...

git-shmart]$ make
sh ./test/test_smart_pull
./test/test_smart_pull: 3: ./test/test_smart_pull: Bad substitution
./test/test_smart_pull: 6: .: Can't open /info/programming/bash/examples/git-shmart/../lib/smart-pull
Makefile:4: recipe for target 'test' failed
make: *** [test] Error 2

vs.

git-shmart]$ bash ./test/test_smart_pull
it_does_nothing_when_up_to_date
it_warns_when_not_in_a_git_repo
it_reports_no_remote_changes_and_one_local_change
.
.
.

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.