1

I'm new to Git and am trying to clone a repository on my local using Github Desktop.

However I get an error when I try to do this. If I check the log it ends with the error:

GetBranch`1|Could not resolve branch origin/drupal-dev-env

Googling this reveals nothing useful (to me, with my level of understanding).

Would anyone know what's going on?

MeltingDog
  • 14,310
  • 43
  • 165
  • 295
  • Might be the branch is private, or inaccessible. Make sure you (and GitHub) have the permissions to the location you're cloning to. – Bloc97 Oct 26 '16 at 04:49
  • Did you just run a git clone or was it something else, please mention the command that you ran – aliasav Oct 26 '16 at 07:30
  • @aliasav I used the GUI to try and clone. Not sure what actual commands the GUI sent – MeltingDog Oct 26 '16 at 07:42

1 Answers1

0

It is possible the default branch of the remote repo is one which does not exist in the remote repo.

Try to clone that repo in command line, and see if you can list the branches actually fetched (even if the clone fail to checkout any branch) with:

git branch -avv
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250