Skip to content

Instantly share code, notes, and snippets.

@jbmyid
Forked from Ranjithkumar/git_shortcut_command
Created April 18, 2014 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbmyid/11038684 to your computer and use it in GitHub Desktop.
Save jbmyid/11038684 to your computer and use it in GitHub Desktop.
Add these lines into ~/.gitconfig file.
---------------------------------------------------------------------
[alias]
st = status
ft = fetch
ci = commit
cm = commit -m
br = branch
rb = branch -d
co = checkout
nb = checkout -b
df = diff
pl = pull --rebase
ps = push
lg = log -p
rv = revert
cp = cherry-pick
ecm = commit --amend -m
uns = reset HEAD
fps = push -u
rbc = rebase --continue
undo = reset --hard
[color]
diff = auto
status = auto
branch = auto
[format]
pretty = "Commit: %C(yellow)%H%nAuthor: %C(green)%aN <%aE>%nDate: (%C(red)%ar%Creset) %ai%nSubject: %s%n%n%b"
---------------------------------------------------------------------
For more information, check here
1) https://thomashunter.name/blog/git-colored-output-shortcut-commands-autocompletion-and-bash-prompt/
2) http://gitready.com/intermediate/2009/02/06/helpful-command-aliases.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment