Skip to content

Instantly share code, notes, and snippets.

@muhammadghazali
Created March 21, 2012 15:48
Show Gist options
  • Save muhammadghazali/2148792 to your computer and use it in GitHub Desktop.
Save muhammadghazali/2148792 to your computer and use it in GitHub Desktop.
git status, git add, git commit, and git checkout are such common commands that it is useful to have abbreviations for them. http://gitimmersion.com/lab_11.html
# GIT IMMERSION tutorial
# http://gitimmersion.com/lab_11.html
# Add the following to the .gitconfig file in your $HOME directory.
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment