git init [<options>] |
g! [<options>] |
Yes |
 |
git add . |
g. |
Yes |
 |
git branch |
gb |
Yes |
 |
git branch -a |
gb-a |
Yes |
 |
git branch -d |
gb-d |
Yes |
 |
git branch -m <name> |
gb-name <name> |
Yes |
 |
git checkout -b <name> |
gb-new <name> |
No, You can only pass branch-name and --track or --no-track |
 |
git checkout -- . |
g!. |
No, Discards all your changes |
 |
git blame |
gblame |
Yes |
 |
git clone <url> |
gcl <url> |
Yes |
 |
git commit -m <message> |
gc <message> |
No, it accepts only commit message |
 |
git diff [--options] <commit> [--] [<path>…] |
gd [--options] <commit> [--] [<path>…] |
Yes |
 |
git fetch [<options>] [<repository> [<refspec>…] |
gf [<options>] [<repository> [<refspec>…]] |
Yes |
 |
git log --graph --decorate --all |
gl |
No |
 |
git log --summary |
gl-s |
Yes |
 |
git push [<options>] [<remote>] [<branch>] |
gph [<options>] [<remote>] [<branch>] |
Yes |
 |
git push -f [<remote>] [<branch>] |
gph-f <remote> <branch> |
Yes |
 |
git pull [options] [<repository> [<refspec>…]] |
gpl [options] [<repository> [<refspec>…]] |
Yes |
 |
git remote [commands] [<...>] |
gr [commands] [<...>] |
Yes |
 |
git remote -v |
gr-v |
It acceps only <show> and <update> |
 |
git remote add <name> <url> |
gr-update <name> <url> |
It accepts options related to <add> |
 |
git remote update |
gr-update |
Only accepts <prune> |
 |
git remote remove <name> |
gr-remove <name> |
No other options are needed other than <name> |
 |
git reset [<mode>] <head> |
greset [<mode>] <head> |
Yes |
 |
git reset --hard <head> |
greset-h <head> |
Takes only <head> |
 |
git revert [<options>] [<subcommands>] |
grevert [<options>] [<subcommands>] |
Yes |
 |
git revert HEAD |
grevert-h |
This reverts last commit only, Use the above for reseting other commits eg., grevert head~2 |
 |
git status [<options>…] [--] [<pathspec>…] |
gs [<options>…] [--] [<pathspec>…] |
Yes |
 |
git stash [<command>] [<options>] |
gsh [<command>] [<options>] |
Yes |
 |
git stash apply [--index] [<stash>] |
gsh-a [--index] [<stash>] |
Yes |
 |
git stash list [<options>] |
gsh-l [<options>] |
Yes |
 |
git stash clear |
gsh-c |
No It clears all the stash list |
 |
git stash pop [--index] |
gsh-p [--index] |
Yes |
 |
git stash drop [<stash>] |
gsh-d [<stash>] |
Yes |
 |
`git tag -l —sort=v:refname \ |
tail -n8` |
gt |
No |
 |
git add . && git commit -m |
g.c <message> |
No, it accepts only commit message |
 |
git rebase [< All options>] |
grb [<All options>] |
Yes |
 |
git show [<options>] [<object>] |
gsw [<options>] [<object>] |
Yes |
 |