1

这有点奇怪。我正在本地克隆 GitHub 存储库。然后我做本地提交。

用户:当我推送这些更改时,我无法让用户正确。我想要的是我的 GitHub 用户(noopman)成为提交者。相反,我得到了各种奇怪的用户。

密码:此外,当我推送到我拥有的存储库时,它不会每次都要求我输入密码。我设置了什么来存储密码,我该如何重置?

我编辑了我的 .gitconfig 并尝试了 user.name 和 user.email 的不同组合。

这是我目前尝试提交的存储库 - 请注意我 对不同用户的所有测试提交

4

1 回答 1

0

看来您需要 设置 Git

# Sets the default name for git to use when you commit
git config --global user.name "Your Name Here"

# Sets the default email for git to use when you commit
git config --global user.email "your_email@example.com"

和 SSH

# Creates a new ssh key using the provided email
ssh-keygen -t rsa -C "your_email@example.com"
于 2013-04-13T08:29:36.793 回答