【发布时间】:2017-05-12 09:40:07
【问题描述】:
在拉/推期间如何更改git中的帐户?
每当我拉/推时,我都会在终端中使用 git bash。之后,它在我们的 repo 活动中显示我 PUSHED 作为不同的人。
这是一个示例:'name-of-other-account-here' 推送到分支 master
应该是:'my-account-here' 推送到分支 master
【问题讨论】:
-
使用 git config 更改配置
-
git config user.email 。 git config user.name
来配置你的本地仓库。
标签: git git-bash git-push git-pull git-config