question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot checkout a ref which exists on multiple remotes

See original GitHub issue

When I try to switch branches on my forked repo, i get an error message for each attempt.

install.ts:23 `git -c credential.helper= checkout --progress gh-pages --` exited with an unexpected code: 128. fatal: invalid reference: gh-pages

screen shot 2017-11-09 at 12 59 34 pm screen shot 2017-11-09 at 1 06 21 pm

Same result no matter if it’s upstream/branch-name or origin/branch-name.

Cloned repo is: https://github.com/tierninho/map.git

Also, perhaps we should tweak the error message to something a little more understandable?

tested in 1.0.9-beta0, mac

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
METALMAN01commented, Jan 8, 2018

SORRY FOR BOTHERING U WITH MY PROBLEMS I DON’T KNOW WHY YOU GET IT ALL

On Mon, Jan 8, 2018 at 11:28 AM, William Shepherd notifications@github.com wrote:

Closed #3281 https://github.com/desktop/desktop/issues/3281 via #3624 https://github.com/desktop/desktop/pull/3624.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/desktop/desktop/issues/3281#event-1413954223, or mute the thread https://github.com/notifications/unsubscribe-auth/AfqU_7uJcWhuB2DbtROzFqTbKhl7rxLJks5tIkIbgaJpZM4QX3aW .

1reaction
shiftkeycommented, Nov 21, 2017

@NickVirtru thanks, that helps greatly!

EDIT: the boring details here is that there’s a origin/508-final and a upstream/508-final and we don’t seem to distinguish correctly on checkout, so Git will throw up it’s arms in confusion

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Can't do a checkout with multiple remotes - Stack Overflow
If you have multiple remotes, and foo does not exist locally but exists in 2 or more remotes then this behavior is suppressed....
Read more >
Easily Perform Git Checkout Remote Branch [Step-by-Step]
Learn how perform Git checkout remote branch, effectively track remotes, and best practices to manage remotes and branches.
Read more >
Git References - Git SCM
Remote references differ from branches ( refs/heads references) mainly in that they're considered read-only. You can git checkout to one, but Git won't ......
Read more >
Can checkout and track git branch, but cannot pull - Super User
First, make a backup ref with the command git branch ... git fetch -p to prune remote-tracking branches that no longer exist on...
Read more >
GitPython Tutorial — GitPython 3.1.29 documentation
This tutorial is composed of multiple sections, most of which explain a ... assertEqual(repo.refs["origin/master"], repo.remotes.origin.refs.master) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found