修改git名称和邮箱
进入C盘找到 .gitconfig文件打开命名窗口

image.png
命令如下:
修改当前项目的用户名和邮箱地址:
git config user.name "username"
git config user.email "email"
修改全局用户名和邮箱地址:
git config --global user.name "username"
git config --global user.email "email"
查看git用户名和邮箱地址命令:
git config user.name
git config user.email
git分支切换

切换分支
git提交切换

切换分支不同的内容
git分支比对

分支比较内容1

选择与当前分支对比分支
IDEA修改git名称(打开 Terminal)
git config --global user.name
git config --global user.name "李一"
本文标题:修改git名称和邮箱
本文链接:https://www.haomeiwen.com/subject/qrojnktx.html
网友评论