安装git配置用户信息 $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com 参考: git-documentation-book