Why all my Xcode commits to Bitbucket show other user 'Author Name' on Bitbucket?

此生再无相见时 提交于 2019-12-12 03:57:55

问题


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: 

Above command show right email and password. But this will only work if I commit from terminal commands. However, in my case I am committing code directly from Xcode. Any Idea?


回答1:


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!!! ------------------------------------------------------------------------



来源:https://stackoverflow.com/questions/41561391/why-all-my-xcode-commits-to-bitbucket-show-other-user-author-name-on-bitbucket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!