Skip to content

How to rename private repository in GitHub for Desktop? #22147

Discussion options

You must be logged in to vote

@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!

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants