使用另一个 GitHub 帐户进行分支

问题描述 投票:0回答:1

每次我将代码提交到我的存储库时,我的分支都会显示我的另一个帐户,但我不知道如何更改它,因为在我的 VS Code 和 bash 终端中,我的帐户是“GustaDNS”而不是“Gustavo0DNS” enter image description here

我期待的是我的用户名而不是其他的

git github
1个回答
0
投票

运行下面的命令,它将为您提供在本地系统中配置的 github 用户名和电子邮件

git config --global user.name
git config --global user.email

通过点击以下命令设置您想要在提交中显示的适当的用户名和电子邮件。

git config --global user.name "MYUSERNAME"
git config --global user.email "[email protected]"
© www.soinside.com 2019 - 2024. All rights reserved.