在Android Studio中更改Github帐户 [英] Change Github account in Android Studio
问题描述
我使用了一个Github帐户将Android项目从Android Studio推送到Github。现在我已经在Github上创建了另一个帐户,并希望将我的另一个Android项目推向这个新帐户。但我无法在Android Studio中找到任何更改Github帐户的选项。它继续推送以前的帐户,因此导致出现此错误:
remote:对new_username / repository_name.git的权限被拒绝给old_username。
致命:无法访问'
I have used one Github account to push an android project to Github from Android Studio. Now I have created another account on Github and want to push my another android project to this new account. But I am not able to find any option to change the Github account in Android Studio. It keeps pushing from the previous account and hence results in this error:
remote: Permission to new_username/repository_name.git denied to old_username.
fatal: unable to access 'https://github.com/new_username/repository_name.git/': The requested URL returned error: 403
I am using Android Studio 1.2.2 on Windows OS.
解决方案Go to:
Setting --> Version Control --> GitHub --> Change you username.这篇关于在Android Studio中更改Github帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!