npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

mingit

1.0.16 • Public • Published
Mingit Logo

An extremely minified alias for git commands with tab completion. Because who wants git commit -m "blah blah blah" to make every change?

animated demo

Getting started

Installation

npm install -g mingit && source ~/.mingit.sh

or if you like yarn

yarn global add mingit && source ~/.mingit.sh

** You must execute source ~/.mingit.sh or open a new terminal, then you can try out the Commands below. **

Tested on Mac OS X El Capitan. If this doesn't work for you, see Manual Install

Commands

Supporting the minimal number of highly-used commands

g a .                   // git add .
g b other-branch        // git branch other-branch
g c "made some changes" // git commit -m "made some changes"
g co master             // git checkout master
g d                     // git diff
g f                     // git fetch
g i                     // git init 
g m hotfix              // git merge hotfix
g pll                   // git pull
g psh                   // git push
g s                     // git status

This doesn't destroy command line parameters, so for example typing

g psh origin magic      // pushes local to origin/magic

or any other number of parameters on different commands works as "git push origin magic" would. Also, since command line parameters are not destoryed, using g by itself instead of git followed by a command also works:

g stash                 // works just as well with any git subcommand

It also keeps tab completion. So when you want to switch to another branch, just

$ g co <TAB><TAB>
HEAD         master       second-branch   ORIG_HEAD

as you normally would.

Manual Install

Linux

If on linux, append [scripts/bashrc] to ~/.bashrc to use shortened commands.

cat ./.bashrc >> ~/.bashrc

Mac

Append the contents of [scripts/bash_profile] to your ~/.bash_profile:

cat ./.bash_profile >> ~/.bash_profile

Windows

If on windows, append [scripts/win-bashrc] to ~/.bashrc (create it if it doesn't exist) in your home directory (find home by echo $HOME on your git bash setup...probably /c/users/$USER).

Now use the mingit commands instead of the git commands to save tons of time while using git.

Uninstall

$ npm uninstall -g mingit

or

$ yarn global remove mingit

install

npm i mingit

Downloadsweekly downloads

34

version

1.0.16

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability