Change Github account in Android Studio

后端 未结 11 573
我在风中等你
我在风中等你 2021-02-05 02:37

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

11条回答
  •  无人及你
    2021-02-05 03:10

    I was also facing the same issue (working on same PC with diff usernames)

    remote: Permission to new_username/repository_name.git denied to old_username.

    Tried all solution mentioned even deleting .gitconfig didn't work.

    In the end, solved by following different way :
    1. Adding as Collaborator to old_username
    2. Accept collaboration invitation (Make sure you are logged in to old_username)
    3. Push with new_username. Done!

提交回复
热议问题