今天遇到的问题,之前的程序员离职后我接替他,用他的电脑做开发,但是碰到个恶心的问题,我上传代码到我的仓库的时候,无论如何都是显示他的用户名和邮箱,代码也显示他提交的,百度一圈没搞定...少废话了,看东西
1, 上传的时候在这输入你的邮箱地址,但是每次提交都要输入很麻烦
2, 桌面,右键 Git Bash Here
输入,邮箱:
git config --global user.email "email@example.com"
和,用户名:
git config --global user.name "yourname"
搞定~~
(原文地址: https://help.github.com/articles/setting-your-email-in-git/)
(地址: http://stackoverflow.com/questions/38929929/change-github-account-in-android-studio)