美文网首页
git 配置用户信息

git 配置用户信息

作者: 记憶de承渃 | 来源:发表于2018-12-16 10:19 被阅读0次

    config 的三个作⽤用域

            git config --local                          只对仓库有效

            git config --global                        global对登录⽤用户所有仓库有效

            git config --system                      system对系统的所有⽤用户有效

            显示 config 的配置,加 --list

            $ git config --list --local

            $ git config --list --global

            $ git config --list --system

    配置 user 信息

            git config --global user.name ‘your_name’

            git config --global user.email ‘your_email@domain.com

        清除,--unset

            $ git config --unset --local user.name

            $ git config --unset --global user.name

            $ git config --unset --system user.name

        优先级:local > global > system


    相关文章

      网友评论

          本文标题:git 配置用户信息

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