Code Monkey home page Code Monkey logo

git-shortcuts's Introduction

git-shortcuts

Commands

Command Alias
g git
ga git add
gaa git add .
gb git branch
gbd git branch -d
gbD git branch -D
gbdr git branch -d -r
gbDr git branch -D -r
gbv git branch -v
gbvr git branch -v -r
gcn git config
gcnu git config user.name
gcne git config user.email
gcngu git config --global user.name
gcnge git config --global user.email
gsw git switch
gswc git switch -c
gswf git switch -f
gcl git clone
gc git commit
gcm git commit -m
gca git commit --amend
gcam git commit --amend -m
gd git diff
gdn git diff --name-only
gds git diff --staged
gdsn git diff --staged --name-only
gdp git diff @~1 @
gf git fetch
gfa git fetch --all
gl git log
glo git log --oneline
gm git merge
gp git push
gpl git pull
gpu git push -u origin
grh git reset --hard
grs git restore --staged
grm git rm
grmr git rm -r
grmc git rm --cached
grmcr git rm --cached -r
gst git stash
gstp git stash pop
gs git status
gnu git switch -c $1 ; git push -u origin $1

How to use

ZSH shell

./install.sh zsh

Bash shell

./install.sh bash
Get new version from GitHub
./install.sh fetch
Just update .git-shortcuts from local git directory
./install.sh update
Show current installed .git-shortcuts
./install.sh show
Show difference between local git and your current installed version
./install.sh diff
Show install script help message
./install.sh help

or

./install.sh --help

Note

To use installed .git-shortcuts just restart your terminal or run command:

ZSH shell
source ~/.zshrc
Bash shell
source ~/.bashrc

git-shortcuts's People

Contributors

doggyxomax avatar

Watchers

James Cloos avatar  avatar

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.