cannot checkout a ref which exists on multiple remotes
See original GitHub issueWhen 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
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:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
@NickVirtru thanks, that helps greatly!
EDIT: the boring details here is that there’s a
origin/508-final
and aupstream/508-final
and we don’t seem to distinguish correctly oncheckout
, so Git will throw up it’s arms in confusion