gito

Gem Version Build Status Code Climate Inline docs

git helper tool to clone/open/install/edit a git project with a one-liner.


> gito cesarferreira/dryrun

Why?

A lot of times I find myself wanting to try some code from github and in order to do so I have to copy the git URL, go to the terminal, git clone, find out the folder name, go to the folder and based on the type of project I need to bundle install, ./gradlew assemble, npm install... Not anymore!

Usage

$ gito -h
Usage: gito GIT_URL [OPTIONS]

Options
    -e, --edit                       Open the project on an editor
    -o, --open                       Open the project on Finder
    -d, --dryrun                     Doesn't install the dependencies
    -h, --help                       Displays help
    -v, --version                    Displays the version

Examples:

# git clone this https://github.com/cesarferreira/dryrun
gito cesarferreira/dryrun

# git clone, install, open and edit the project
gito cesarferreira/dryrun --edit --open

# git clone, install, open and edit the project
gito https://github.com/cesarferreira/dryrun -e -o

# git clone, install,
gito https://bitbucket.org/username/project

Installation

$ gem install gito

Internally what happens?

Sample:

# clone it
git clone http://github.com/cesarferreira/dryrun

# change directory
cd dryrun

# open an editor of choice if --editor flag
atom .

# open the folder if --open flag
open .

# find out what kind of project it is
project_type_detector

# because `ruby` was detected
bundle install

Contributing

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. If its a feature, bugfix, or anything please only change code to what you specify.
  2. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  3. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  4. Check for existing issues first, before filing an issue.
  5. Have fun!

Created & Maintained By

Cesar Ferreira (@cesarmcferreira)