指定用户名和 Email 地址

git config --global user.name "Your Name"
git config --global user.email "email@example.com"

注意 git config 命令的 --global 参数,用了这个参数,表示你这台机器上所有的 Git 仓库都会使用这个配置,当然也可以对某个仓库指定不同的用户名和 Email 地址。

posted @ 2022-12-11 16:49  HopeLive  阅读(45)  评论(0)    收藏  举报