git快捷命令配置

vim ~/.gitconfig

1607610861960-69f88c41-a1d6-402c-9c47-e8f19dc9a311.png

  1 [user]
  2     name = deltaqin
  3     email = delta_qin@163.com
  4 [core]
  5     autocrlf = input
  6 [alias]
  7     co = checkout
  8     br = branch
  9     ci = commit
 10     st = status
 11     dog = log --all --decorate --oneline --graph
 12 [http]
 13     proxy = http://127.0.0.1:1087
 14 [https]
 15     proxy = http://127.0.0.1:1087
~
~
git config --global alias.st status //status 缩写成 st
git config --global alias.co checkout //checkout 缩写成 co
git config --global alias.br branch //branch 缩写成 br
git config --global alias.ci commit //commit 缩写成 ci
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"

1607942184363-e4d11a29-6143-4d95-bf16-d17add37d044.png

posted on 2025-10-14 22:35  chuchengzhi  阅读(8)  评论(0)    收藏  举报

导航

杭州技术博主,专注分享云计算领域实战经验、技术教程与行业洞察, 打造聚焦云计算技术的垂直博客,助力开发者快速掌握云服务核心能力。

褚成志 云计算 技术博客