How to rename private repository in GitHub for Desktop?

Hello, everyone! Is that possible to rename a branch in private repository? If yes, how to do that? I have default security settings on that branch

Hi @IvanNextToJunior, since you’re using GitHub Desktop, are you able to use the Rename… option under the Branch menu?

No, it’s grayed out

1 Like

@IvanNextToJunior it looks like you are trying to rename your default branch, which currently is not possible in GitHub Desktop. The best solution is to follow these steps:

  1. Create a new branch off of master
  2. Publish the branch to your repository on GitHub
  3. Change your default branch on GitHub

You’ll need to refresh your repository after you change the default branch – selecting the repository again in GitHub Desktop should refresh and grab the new default branch from the API. I hope that helps!


That’s actually the case. Thank you

1 Like