git 随笔

git rev-parse
git config
git submodule
git rev-rebose

git show-ref
git var

git for-each-ref --sort=-committerdate --format="%(committername)@%(refname:short) [%(committerdate:short)]"

git config --global color.ui true #打开所有的默认终端着色
git config --global alias.ci commit #别名 ci 是commit的别名
[alias]
co = checkout
ci = commit
st = status
pl = pull
ps = push
dt = difftool
l = log --stat
cp = cherry-pick
ca = commit -a
b = branch

user.name #用户名
user.email #邮箱
core.editor #文本编辑器
merge.tool #差异分析工具
core.paper "less -N" #配置显示方式
color.diff true #diff颜色配置
alias.co checkout #设置别名
git config user.name #获得用户名
git config core.filemode false #忽略修改权限的文件

posted @ 2023-07-26 16:24  dx2019  阅读(5)  评论(0编辑  收藏  举报