# Switch GitHub account

**URL:** <https://forum.makecode.com/t/switch-github-account/16249>\
**Category:** micro:bit\
**Created:** [November 9, 2022, 6:08pm UTC](https://forum.makecode.com/t/switch-github-account/16249 "2022-11-09T18:08:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilhem.martin](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guilhem.martin](https://forum.makecode.com/u/guilhem.martin)\
**Post date:** [November 9, 2022, 6:08pm UTC](https://forum.makecode.com/t/switch-github-account/16249/1 "2022-11-09T18:08:11Z")

</div>

Hello,

I’ve saved my programs on a GitHub account.  
I want to switch from this GitHub account to another, so I clicked on “Unlink GitHub”. This correctly signs me out of my GitHub account.  
But then, when I want to push again, it defaults to the same GitHub account.

Therefore, I cannot change from GitHub account.

Do you know a way to change the GitHub account with make:code?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![guilhem.martin](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guilhem.martin](https://forum.makecode.com/u/guilhem.martin)\
**Post date:** [November 9, 2022, 11:05pm UTC](https://forum.makecode.com/t/switch-github-account/16249/2 "2022-11-09T23:05:44Z")

</div>

Finally, I did the following actions as a workaround:

1. Unlink GitHub
2. Create a new _makecode_ project
3. Copy the code of the initial _makecode_ project using Javascript view
4. Paste the code to the new project in the Javascript view
5. Push to GitHub: it will ask for credentials, and so I could connect to this account and create the repository
