提供了自定义log格式的功能,尝试输入以下命令: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...shortened reflog selector, e.g., stash@{1} %gs reflog subject %Cred 切换到红色 %Cgreen
end local User = Model:new('users') ngx.say('where demo:\n',cjson.encode(User:where('username','=','cgreen...,"id":99,"username":"cgreen","email":"jratke@yahoo.com"} ngx.say('orwhere demo:\n',cjson.encode(User
IDEA 那样的日志树形式,因此可以采用如下的命令: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...D alias.cb=checkout -b alias.ll=log --graph --pretty=format:'%Cred%h%Creset %C(bold blue)%s%Creset %Cgreen...relative alias.lg=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)%s%Creset %Cgreen...alias.alg=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)%s%Creset %Cgreen
git config --global alias.lg "log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...config --global alias.lg log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
# # 更多类型和数据结构 # # 枚举类型只能具有有限数量的值之一 type Color = enum cRed, cBlue, cGreen Direction = enum # 可选格式...dNorth dWest dEast dSouth var orient = dNorth # `orient`的类型是Direction,值是`dNorth` pixel = cGreen...# `pixel`的类型是Color,值是`cGreen` discard dNorth > dEast # Enum通常是“序数”类型 # 子范围指定有限的有效范围 type DieFaces
-decorate --graph --all' glol='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...Creset'\'' --abbrev-commit' glola='git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
配置局部账户 最漂亮的日志: 要做到这样,命令行如下: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
glo git log --oneline --decorate glol git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen...cr) %C(bold blue)%Creset' glols git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen...bold blue)%Creset' --stat glod git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen...ad) %C(bold blue)%Creset' glods git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen...blue)%Creset' --date=short glola git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen
alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)%s%Creset %Cgreen...alias.lga "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %C(bold blue)%s%Creset %Cgreen
config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
origin v1.3.1 查看分支结构 git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
alias.unstage 'reset HEAD' git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
alias.br branch 想让日志更清晰,可以运行 git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen...git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
fi done CSI=$($echo -e "\033[") CEND="${CSI}0m" CDGREEN="${CSI}32m" CRED="${CSI}1;31m" CGREEN
显示日志可以使用 git config--globalalias.lg"log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen
name = duyixian email = duyixian1234@qq.com [format] pretty = format:%h %Cblue%ad%Creset %an %Cgreen
现在,我们输入命令: git log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%d%Creset %s %Cgreen(%cr) %C(
领取专属 10元无门槛券
手把手带您无忧上云