在 Android Studio 中更改 Github 帐户 [英] Change Github account in Android Studio

查看:41
本文介绍了在 Android Studio 中更改 Github 帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆