如何在localhost git bash上更改github登录详细信息?
我在安装时已经与朋友的github.username
和github.token
配置了我的GitHub存储库,我想从该ID更改为我自己的ID。
我们应该怎么做?
答案 0 :(得分:2)
这两个参数由Git config管理:
$ git config --global github.user username
$ git config --global github.token 0123456789yourf0123456789token
如果您只想为项目更改它们,可以删除--global
参数并在特定仓库中重复该命令。
此help/setup script说明了GitHub身份验证所需的步骤。
另请参阅“How to setup Git Bash (msysgit) with a github token or ssh key”。