Pulling from a remote
After cloning a repository or adding a remote to your existing project, you can pull commits from the available Git remotes into your current branch via the Command Palette or the terminal.
Pulling via the Command Palette
Pulling from origin (the default remote)
- Open the Command Palette
- Run the
Git: Pull
command (typepull
and press Enter)
Pulling from another remote
- Open the Command Palette
- Run the
Git: Push to remote
command (typepush to
and press Enter) - Type the name of the remote you would like to pull from
- Click on Pull or hit Enter when it is selected
Pulling to a remote using the terminal
To pull commits from a remote into the current branch running the following command in your terminal:
git pull remote-name