Giter Club home page Giter Club logo

plugin-git's Introduction

git

A git aliases plugin for Oh My Fish based loosely on the Oh My Zsh Git Plugin.

MIT License Fish Shell Version Oh My Fish Framework


Install

$ omf install https://github.com/jhillyerd/plugin-git

Usage

Bisect

Abbreviation Command
gbs git bisect
gbsb git bisect bad
gbsg git bisect good
gbsr git bisect reset
gbss git bisect start

Branch

Abbreviation Command
gb git branch -vv
gba git branch -a -v
gbda delete all branches merged in current HEAD
ggsup git set upstream to origin/current-branch

Checkout

Abbreviation Command
gco git checkout
gcod git checkout develop
gcom git checkout master
gcb git checkout -b

Commit

Abbreviation Command
gc git commit -v
gc! git commit -v --amend
gcn! git commit -v --no-edit --amend
gca git commit -v -a
gca! git commit -v -a --amend
gcan! git commit -v -a --no-edit --amend
gcm git commit -m

Flow

Abbreviation Command
gfb git flow bugfix
gff git flow feature
gfr git flow release
gfh git flow hotfix
gfs git flow support
gfbs git flow bugfix start
gffs git flow feature start
gfrs git flow release start
gfhs git flow hotfix start
gfss git flow support start
gfbt git flow bugfix track
gfft git flow feature track
gfrt git flow release track
gfht git flow hotfix track
gfst git flow support track
gfp git flow publish

Log

Abbreviation Command
gcount git shortlog -sn
glg git log --stat --max-count=10
glgg git log --graph --max-count=10
glgga git log --graph --decorate --all
glo git log --oneline --decorate --color
gloo git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short
glog git log --oneline --decorate --color --graph
glp git log at requested pretty level
gwch git whatchanged -p --abbrev-commit --pretty=medium

Push & Pull

Abbreviation Command
gl git pull
ggl pull origin current-branch
gup git pull --rebase
gp git push
gp! git push -f
ggp push origin current-branch
gpoat push all + tags to origin
ggpnp pull & push origin current-branch

Rebase

Abbreviation Command
grb git rebase
grba git rebase --abort
grbc git rebase --continue
grbi git rebase --interactive
grbm git rebase master
grbs git rebase --skip
ggu fetch & rebase current-branch on top of the upstream branch

Remote

Abbreviation Command
gr git remote -vv
grmv git remote rename
grrm git remote remove
grset git remote set-url
grup git remote update
grv git remote -v

Stash & Work in Progress

Abbreviation Command
gsta git stash
gstd git stash drop
gstp git stash pop
gsts git stash show --text
gwip commit a work-in-progress branch
gunwip uncommit the work-in-progress branch

Everything Else

Abbreviation Command
g git
ga git add
gaa git add --all
gapa git add --patch
gcf list git configuration
gcl git clone
gclean pristine working directory: reset and force clean
gcp git cherry-pick
gd git diff
gdca git diff --cached
gdv pipe git diff to view command
gignore git update-index --assume-unchanged
gignored list temporarily ignored files
gf git fetch
gfa git fetch --all --prune
gfo git fetch origin
gm git merge
gmt git mergetool --no-prompt
grh git reset HEAD
grhh git reset HEAD --hard
grt cd into the top of the current repository or submodule
gsh git show
gsd git svn dcommit
gsr git svn rebase
gss git status -s
gst git status
gunignore git update-index --no-assume-unchanged

License

MIT © James Hillyerd et al

plugin-git's People

Contributors

jhillyerd avatar barbzyhool avatar naaando avatar cellane avatar anderkonzen avatar krule avatar martindelille 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.