同一台电脑使用多个git账号

今天写了文章post到github上发现github并没有记录contribution,使用sourceTree查看提交历史,发现是用公司的git账号提交的,o(╯□╰)o
git

使用下面命令设置本项目中的用户和邮箱

git config user.name javaor
git config user.email [email protected]