You can add a remote to your project’s Git local Git repository via the Command Palette or the terminal.

Add a remote via the Command Palette

  1. Open the Command Palette
  2. Run the Git: Add new remote command (type git remote and press Enter) Git: Checkout in the Command Palette

  3. Type the name and URL of your remote (e.g. origin and git@github.com:sourcelair/xterm.js.git) Git remote prompt

  4. Click on Add remote or hit Enter when it is selected

Add a remote using the terminal

Add a remote by running the following command in your terminal:

git remote add origin git@github.com:sourcelair/xterm.js.git