error with branch upstream/master
See original GitHub issueDescription
that is probably a follow up of this issue https://github.com/desktop/desktop/issues/4130
I want to keep my fork sync with the original master (upstream) so I follow this guideline: https://help.github.com/articles/configuring-a-remote-for-a-fork/ https://help.github.com/articles/syncing-a-fork/
as far I can see, the 1st steps add a new branch upstream/master in github Desktop as far I understand the help of github Desktop, I can’t sync my fork from the upstream with github Desktop, so I follow the 2nd steps to do it with git bash. And it works well.
But in github Desktop, if I want to change the branch to upstream/master, I have this error message: A branch with that name already exists
Version
- GitHub Desktop: 1.3.0-beta2
- Operating system: window10
Steps to Reproduce
see the description above
Expected Behavior
I wish it could be possible to sync fork from upstream with github Desktop (more simple than using git). And, at least, this error message should not appear in github Desktop
Logs
there is something strange in this log:
2018-07-18T09:35:49.910Z - warn: [ui] fetchRepository: 'vincent3569/zenphoto-perso' returned a 404
but this repository exists on github (https://github.com/vincent3569/zenphoto-perso).
and in fact, I can push my commit to github, and I have this error:
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
Hi, the Past! I got here from a Google search for github desktop “a branch with that name already exists” master because I wanted to update my fork from the original upstream repository. When I tried switching to its
master
branch, Desktop showed that error message.Desktop 1.5.0
In this version, the workflow appears to have changed.
master
branch.upstream/master
.Feedback on the 1.5.0 workflow
master
ororigin
orupstream
is in the name of the branch, it seems reasonable to guess that the user is trying to update their fork and adding “If you’re trying to update from another repository that has a branch with this name, see $HELP_URL for more information.” would at least give the user a next step rather than a dead end.Missing “dirty dot”
Same issue - December 2019 - no ‘dirty’ dot though upstream/master has changed, and “a branch with that name already exists” error when trying to switch to it.