如果想在一台电脑上使用多个 GitHub 账号,使用全局配置是不行的。如果使用全局配置的话,那么每次使用 git 命令时都会使用这个全局的用户名和邮箱,就没有办法区分不同的 GitHub 账号了。
https://blog.csdn.net/qq_43199318/article/details/103469792
git 一台电脑双GitHub账户配置
https://zhuanlan.zhihu.com/p/107341502
SSH和Github Desktop方案
https://www.nousbuild.org/codeu/github-multiple-accounts/
Win11 git配置多个 GitHub 账号
https://www.chengxulvtu.net/how-to-work-with-multiple-github-accounts-on-win11/