配置别名
来源:互联网 发布:云财务 知乎 编辑:程序博客网 时间:2024/05/01 15:44
配置一个git last
,让其显示最后一次提交信息:
$ git config --global alias.last 'log -1'
这样,用git last
就能显示最近一次的提交:
$ git lastcommit adca45d317e6d8a4b23f9811c3d7b7f0f180bfe2Merge: bd6ae48 291bea8Author: Michael Liao <askxuefeng@gmail.com>Date: Thu Aug 22 22:49:22 2013 +0800 merge & fix hello.py
甚至还有人丧心病狂地把lg
配置成了:
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
0 0
- 配置别名
- 配置别名
- 配置别名
- 配置别名
- 配置别名
- 配置别名
- Apache,Tomcat别名配置
- centos 配置别名
- Git之配置别名
- git配置别名
- 28.配置别名
- 26. 配置别名
- git 命令别名配置
- Git 配置别名
- Git配置别名
- Linux配置别名
- nginx虚拟主机别名配置
- Git23--配置别名
- 深入理解JavaScript系列(15):函数(Functions)
- TI AM437X开发板 Rico Board --米尔科技
- Linux Socket五种I/O模型
- Ubuntu_10.04下的tftp服务器搭建
- js 定时处理
- 配置别名
- sqlite第三方类库:FMDB使用
- 一个非常经典的仿passbook优惠券的卡片demo分享
- Android手机省电点
- B. Amr and Pins
- 深入理解JavaScript系列(16):闭包(Closures)
- Android日志工具类
- the schematic of the parttion of WINDOWS + LINUX bi-system
- Tomcat如何与Servlet对象进行交互