Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 540349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:13:52+00:00 2026-05-13T10:13:52+00:00

I have a remote repository http://github.com/fernandezpablo85/Test This repo has a master branch, but it’s

  • 0

I have a remote repository http://github.com/fernandezpablo85/Test

This repo has a master branch, but it’s behind two other branches so when I clone it I get this warining:

warning: remote HEAD refers to nonexistent ref, unable to checkout.

And also I don’t get a local master branch (git branch shows nothing).

I can fix the whole thing doing:

git checkout -b master origin/master

But I was wondering why this happens? Is master supposed to be the more advanced branch? Or is there something else wrong with my repo?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:13:52+00:00Added an answer on May 13, 2026 at 10:13 am

    1/ No, master is not necessary the most advanced branch. One can publish only to another branch, and then delete that branch…

    2/ When that happen, you should select master as the default branch from the admin panel of the github repo, but that is not always possible. See this bug

    For anyone else who has hit this issue:

    tekkub told me how to get around this bug via the freenode #github channel.

    • create a temporary branch,
    • push that to your repo,
    • select the default branch in the admin panel for that repo,
    • then delete the branch and push again.

    Worked for us.

    (the idea is to temporary have two branches, in order to be able to select master as default with the GUI admin panel, and then delete the extra branch)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Nexus. I have added a proxy repository for http://reflections.googlecode.com/svn/repo/ . Its
I have a remote git repository and I have cloned one branch git clone
i have commits that are in a remote repository (origin/master) which i want to
I have got a repository at github and several branches. The whole repo is
I have made a deploy with capistrano in a repository remote. I'm novice with
I have set up a remote Mercurial (Hg) repository that holds a large Java
I have a local repository I'm working on and its remote is hosted on
I have a remote monotone repos I want to pull from, but I really
I have a remote server that has win2003 installed I can connect to the
GitHub has a Project Pages feature that pulls from the gh-pages branch of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.