I’m recently moving from WebStorm to VSCode and missing this "Update Project" (⌘T
) feature (https://www.jetbrains.com/help/idea/sync-with-a-remote-repository.html#update). Basically what it does is git fetch --all
and then git merge
for each local branch (like git pull -all
but also git merge
for each other local branch in addition to the current local branch). Is there such a VSCode equivalent of this?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Based on @CollinD's comment, I ended up creating a custom user's task (wrapping
hub sync
) and the corresponding keybinding for it:tasks.json
keybindings.json
Yes, in the Git tab, you can sync changes with the remote branch. I don’t believe it’s exactly like the "Update Project" in JetBrains, but it’s very similar. You can also install the GitLens extension (highly suggested) to improve the Git integration in VSCode. Here’s a link that gives you an intro to Git in VSCode.