Markdown

[GIT] alias

[eric_tu@localhost learngit]$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias gc='git checkout'
alias gl='git log --oneline --decorate --graph --color'
alias grep='grep --color=auto'
alias gs='git status'
alias gup='git remote update -p;gl'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
~/.gitconfig
   1 [color]~
-  2 >...ui = auto~
   3 ~
   4 [alias]~
   5 lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar     )%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all~              
   6 lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C     (reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim whi     te)- %an%C(reset)' --all~
   7 lg = !"git lg1"~
 ~                                                                                                              
 ~                                      

留言