一、查看
1、查看用戶名
git config user.name
2、查看密碼
git config user.password
3、查看郵箱
git config user.email
4、查看配置信息
git config --list
二、設(shè)置
1、設(shè)置用戶名
1)覆蓋
git config --global user.name "xxxx(用戶名)"
2)替換
git config --global --replace-all user.name "xxxx(用戶名)"
2、設(shè)置密碼
1)覆蓋
git config --global user.password "xxxx(密碼)"
2)替換
git config --global --replace-all user.password "xxxx(密碼)"
3、設(shè)置郵箱
1)覆蓋
git config --global user.email "xxxx@xxx.com(郵箱)"
2)替換
git config --global --replace-all user.email "xxxx@xxx.com(郵箱)"
三、刪除
1、設(shè)置用戶名
git config --global --unset user.name "xxxx(用戶名)"
2、設(shè)置密碼文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-523288.html
git config --global --unset user.password "xxxx(密碼)"
3、設(shè)置郵箱文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-523288.html
git config --global --unset user.email "xxxx@xxx.com(郵箱)"
到了這里,關(guān)于查看設(shè)置刪除Git用戶名、密碼和郵箱的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!