为什么我所有的Xcode都会提交Bitbucket在Bitbucket上显示其他用户的'作者姓名'? [英] Why all my Xcode commits to Bitbucket show other user 'Author Name' on Bitbucket?
问题描述
当我提交代码并将代码推送到bitbucket时,我的bitbucket显示了其他作者的名称。我用过:
When I commit and push code to bitbucket, my bitbucket show some other Author name. I used :
~ mymac$ git config --global user.name "Myfirstname lastname"
:~ mymac$ git config --global user.email "myemail@abcd.com"
:~ mymac$ git config user.name "myusername"
:~ mymac$ git config user.email "myemail@abcd.com"
:~ mymac$ cat .git/config:
以上命令显示正确的电子邮件和密码。但是,如果我从终端命令提交,这只会起作用。但是,在我的情况下,我直接从Xcode提交代码。任何想法?
推荐答案
幸运的是,我发现了这个问题的解决方案:Xcode使用通讯录中的联系人卡作为作者姓名到所有提交。您可以更改任何想要在Bitbucket / Git上显示的用户名/作者姓名,请点击此链接
Hey guys fortunately I found the solution to this question: Xcode use your contact card from address book as Author name to all the commits. You can change whatever username/author name you want to show on Bitbucket/Git, follow this link https://support.apple.com/kb/PH22743?locale=en_US to make a contact as your contact card. Check screenshots also. Select any contact and make your contact card as displayed in screenshot. Happy Coding!!! ------------------------------------------------------------------------
这篇关于为什么我所有的Xcode都会提交Bitbucket在Bitbucket上显示其他用户的'作者姓名'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!