设置用户名和邮箱
git config --global user.name [username]
git config --global user.email [email]
查看用户名和邮箱
git config --global user.name
git config --global user.email
查看配置文件
git config --list
编辑配置文件
vi .gitconfig
sourcetree中的配置
[credential]
helper = store