Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGit: After adding remote, run fetch #92034
Open
Labels
Comments
(Experimental duplicate detection) |
I think you're missing something.
No, I think what happened was that there was an automatic fetch happening and suddenly the branches became available. We should just run |
@BoltonBailey thanks for submitting a PR. @joaomoreno I guess it's too late for this to get into April, but please can it be merged in time for May? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is a bug or if there is an intended way of doing this correctly in vscode that I'm missing, but the behavior I'm seeing doesn't make sense to me.
I can add a remote to my repository by using the Git: Add Remote command. If I then use the Git: Pull from... command I will see the newly added remote. However, if I select that remote I am then asked to select a branch from the remote, and when I type in the branch I want and hit enter, nothing happens.
Interestingly, if I add the remote, and then run the command "git pull REMOTENAME BRANCHNAME" in the terminal, thereafter when I run the Git: Pull from... command, when I am asked to select a branch I am shown a drop-down menu of branches I can select including those branches I have pulled from already, but no others. Removing the remote and re-adding it resets the set of branches I can pull from.
Running git remote show BRANCHNAME shows a list of branches on the remote.
Here is what I think should be improved:
For the purposes of replicating the issue, my vs code version data is
Version: 1.42.1
Commit: c47d83b
Date: 2020-02-11T14:44:27.652Z
Electron: 6.1.6
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.3.0