有的时候因为电脑上有多个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