在 Android Studio 中更改 Github 帐户 [英] Change Github account in Android Studio
问题描述
我使用一个 Github 帐户将一个 Android 项目从 Android Studio 推送到 Github.现在我在 Github 上创建了另一个帐户,并想将我的另一个 android 项目推送到这个新帐户.但是我在 Android Studio 中找不到任何更改 Github 帐户的选项.它不断从以前的帐户推送,因此导致此错误:
<块引用>远程:对 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屋!