Loading

git Common Aliases

 

git status, git add, git commit, and git checkoutare such common commands that it is useful to have abbreviations for them.

Add the following to the .gitconfig file in your $HOME directory.

FILE: .gitconfig
[alias]
  co = checkout
  ci = commit
  st = status
  br = branch
  hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset | %s%C(yellow)%d%Creset %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative type = cat-file -t dump = cat-file –p
 
reference:http://gitimmersion.com/lab_11.html
posted @ 2012-04-26 11:11  .net's  阅读(328)  评论(0编辑  收藏  举报