What does git sync do in VSCode

What commands are actually run when you Synchronise Changes in Visual Studio Code?

git sync in vscode

  • Git: Discard all changes on remote branch when merging
  • GIT cannot revert to prior commit - remote won't accept push
  • Why doesn't `git diff` invoke external diff tool?
  • Xcode and Git installation on MacOSX Mountain Lion
  • Why can't I push to this bare repository?
  • How do I mark conflicts as resolved in the git GUI tool?
  • difference between “git checkout - . ” and “git checkout — .”
  • git-flow vs. normal git commands
  • Git messed up my files, showing chinese characters in some places
  • Does pushing a git tag to origin copy files?
  • Committed PNG files to Git on Windows broke %PNG\r\n header
  • git vimdiff mergetool basic commands?
  • One Solution collect form web for “What does git sync do in VSCode”

    From the VSCode online help:

    Given that your repository is connected to some remote and that your checked out branch has an upstream link to a branch in that remote, VS Code offers you useful actions to push, pull and sync that branch (the latter will run a pull command followed by a push command).

    It appears that if you run synchronize changes on a given branch, it will do the following:

    git pull origin someBranch
    git push origin someBranch
    Git Baby is a git and github fan, let's start git clone.