git config user.name (获取用户名)
git config user.email (获取邮箱)
git config --global user.name "name" (设置用户名)
git config --global user.email "email" (设置邮箱)
git add index.html (添加指定文件到缓存区)
原文:https://www.cnblogs.com/heyiping/p/14628968.html