Usefull Git shortcuts

git-shortcuts
Usefull git shortcuts and autocomplete for the git-scm distribution of the bash terminal on Windows.
Commands
Shortcut | Git command |
---|---|
less | "less -r" |
ls | "ls -F --color --show-control-chars" |
ll | "ls -l" |
gs | "git status " |
gss | "git status -s" |
gp | "git pull -r" |
gh | "git push " |
gho | "git push -u origin " |
up | "git push " |
upo | "git push -u origin " |
ga | "git add " |
gaa | "git add -A" |
gb | "git branch " |
gc | "git commit " |
gcm | "git commit -m " |
gd | "git diff" |
go | "git checkout " |
gob | "git checkout -b" |
gk | "gitk --all&" |
gx | "gitx --all" |
got | "git " |
get | "git " |
g | "git " |
gm | "git merge " |
gr | "git reset " |
Instalation
To install it just add .bashrc and .bash_profile your current username app data folder (C:\username - it's Windows :D).
File | Description |
---|---|
.bashrc | Contains the aliases (shortcuts) for the git commands |
.bash_profile | Contains autocomplete commands for the aliases (aka. use tab for autocomplete on known names) |
This is distributed under GNU GPL 3 licence.
Happy productivity
Oficial repo page
- Posted on 13/08/2017
- Category: IT