配置 Git 用户信息 #1

Open
opened 2026-02-02 11:42:42 +08:00 by gouki · 0 comments
Owner

当前 Git 提交使用默认的 Ubuntu 用户名和电子邮件地址(ubuntu@localhost.localdomain)。

建议操作

配置正确的用户信息:

git config --global user.name "你的名字"
git config --global user.email "你的邮箱"

然后修复历史提交:

git commit --amend --reset-author
当前 Git 提交使用默认的 Ubuntu 用户名和电子邮件地址(ubuntu@localhost.localdomain)。 ## 建议操作 配置正确的用户信息: ```bash git config --global user.name "你的名字" git config --global user.email "你的邮箱" ``` 然后修复历史提交: ```bash git commit --amend --reset-author ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gouki/openclaw#1
No description provided.