Change username for BitBucket from Android Studio without Terminal

时间:2017-12-18 07:45:33

标签: android android-studio bitbucket

I tried changing BitBucket username through Terminal but want to change it through Android Studio. Is there an option available in VCS or Version control so as to change it?

Here is my example:

enter image description here

I want to change username "Laxmi" to "Nikhil".

1 个答案:

答案 0 :(得分:1)

首先,检查git配置文件中设置的电子邮件地址是否与Bitbucket用户个人资料上设置的电子邮件地址匹配

$ git config -l <​​/ p>

决议

如果您在git配置文件中设置的电子邮件地址与在Bitbucket Server用户配置文件中设置的电子邮件地址不匹配,则这是预期的行为,您需要相应地配置本地Git客户端。如果要在该列上看到其他用户,则必须更新Git配置并执行新的提交:

$ git config --global user.name“ John Doe”

$ git config --global user.email johndoe@example.com

检查此网址

https://confluence.atlassian.com/bitbucketserverkb/commit-in-bitbucket-server-shows-a-different-username-than-the-one-that-pushes-the-code-779171816.html