【问题标题】:Github commits from different PC's来自不同 PC 的 Github 提交
【发布时间】:2017-12-05 12:46:57
【问题描述】:

快速提问,如果我有不同的 PC 共享相同/不同的项目,我想提交。

如何确保所有提交都来自我的 GitHub 帐户所有者?现在,它使用 PC 用户名而不是我的 GitHub 帐户提交。

【问题讨论】:

    标签: github github-for-windows github-for-mac


    【解决方案1】:

    您可以通过以下方式设置您的 Git 用户名:

    1. 打开 Git Bash。

    2. 设置 Git 用户名:

      $ git config --global user.name "Mona Lisa"

    3. 确认您已正确设置 Git 用户名:

      $ git config --global user.name

      会输出蒙娜丽莎

    参考:https://help.github.com/articles/setting-your-username-in-git/

    【讨论】:

    • @rivar_ 如果以下答案之一解决了您的问题,您应该接受它(单击相应答案旁边的复选标记)。这有两件事。它让每个人都知道您的问题已得到您满意的解决,并为帮助您的人提供帮助。 See here 以获得完整的解释。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-25
    • 2021-02-07
    • 2019-10-27
    • 2021-10-27
    • 2017-10-12
    • 2022-08-03
    • 1970-01-01
    相关资源
    最近更新 更多