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

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

问题描述

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

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