侧边栏壁纸
  • 累计撰写 218 篇文章
  • 累计创建 59 个标签
  • 累计收到 5 条评论

gitconfig 配置文件

barwe
2023-05-25 / 0 评论 / 0 点赞 / 765 阅读 / 500 字
温馨提示:
本文最后更新于 2023-06-07,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

gitconfig 文件用来配置 Git 工作环境:

  • 系统级:/etc/gitconfig,对应 git config --system
  • 用户级:~/.gitconfig,对应 git config --global
  • 项目级:项目目录/.git/config,对应 git config

文件内容:

[user]
name = barwe
email = barwechin@163.com

[alias]
st = status
co = checkout
br = branch
ci = commit
pl = pull --rebase
ps = push
mg = merge --no-ff
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

[core]
autocrlf = input
ignorecase = false
quotepath = false

[push]
default = upstream

[credential]
helper = store

[pull]
rebase = true
0

评论区