敖烈的存档点

Back

Git 修改提交者信息Blur image

有的时候因为电脑上有多个git账号,不同的项目需要分开管理,所以就需要修改提交者。

查看#

git config user.name
git config user.email
bash

修改#

设置全局#

git config --global user.name "Author Name"
git config --global user.email "Author Email"
bash

设置当前仓库#

git config user.name "Author Name"
git config user.email "Author Email"
bash
Git 修改提交者信息
https://astro-docs.vercel.app/blog/git-author
Author 敖烈 / Yunus
Published at February 20, 2025
Comment seems to stuck. Try to refresh?✨