项目作者: viktormoravetski

项目描述 :
Aliases for git
高级语言: Shell
项目地址: git://github.com/viktormoravetski/git_aliases.git
创建时间: 2018-07-02T21:20:51Z
项目社区:https://github.com/viktormoravetski/git_aliases

开源协议:

下载


git_aliases

Aliases for git
add these commands
on Linux:

cat >> ~/.gitconfig

[alias]

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

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 white)- %an%C(reset)’ —all

lg = !”git lg1”

then it could be used with commands:

% git lg

or % git lg1

or % git lg2