After cloning a repository or adding a remote to your existing project, you can push the commits of the current branch to the available Git remotes via the Command Palette or the terminal.

Pushing via the Command Palette

Pushing to origin (the default remote)

  1. Open the Command Palette
  2. Run the Git: Push command (type push and press Enter) Git: Push

Pushing to another remote

  1. Open the Command Palette
  2. Run the Git: Push to remote command (type push to and press Enter) Git: Push to remote in the Command Palette

  3. Type the name of the remote you would like to push to Git: Push to remote prompt

  4. Click on Push or hit Enter when it is selected

Pushing to a remote using the terminal

To push the commits of the current branch running the following command in your terminal:

git push remote-name