【发布时间】:2017-12-05 12:46:57
【问题描述】:
快速提问,如果我有不同的 PC 共享相同/不同的项目,我想提交。
如何确保所有提交都来自我的 GitHub 帐户所有者?现在,它使用 PC 用户名而不是我的 GitHub 帐户提交。
【问题讨论】:
标签: github github-for-windows github-for-mac
快速提问,如果我有不同的 PC 共享相同/不同的项目,我想提交。
如何确保所有提交都来自我的 GitHub 帐户所有者?现在,它使用 PC 用户名而不是我的 GitHub 帐户提交。
【问题讨论】:
标签: github github-for-windows github-for-mac
您可以通过以下方式设置您的 Git 用户名:
打开 Git Bash。
设置 Git 用户名:
$ git config --global user.name "Mona Lisa"确认您已正确设置 Git 用户名:
$ git config --global user.name会输出蒙娜丽莎
参考:https://help.github.com/articles/setting-your-username-in-git/
【讨论】: