美文网首页程序员
1.使用Git之前需要做的最小配置

1.使用Git之前需要做的最小配置

作者: 就是耍帅 | 来源:发表于2020-11-19 18:12 被阅读0次

1.配置user 的信息(配置之后,谁提交的会展示其user.name):

即配置user.name和user.email

git config --global user.name 'your_name'

git config --global user.email 'your_email'

config后面可以选择参数:

git config --local (local只对某个仓库有效,缺省等同于local)

git config --global (global 对当前用户所有仓库有效,一般都是用这个)

git config --system (system对系统所有登录的用户有效)

2.显示config 的配置,加--list

git config --list --local

git config --list --global

git config --list --system

相关文章

网友评论

    本文标题:1.使用Git之前需要做的最小配置

    本文链接:https://www.haomeiwen.com/subject/qruliktx.html