Git: Working with Remote Repositories

See Also

The IDE enables you to work with remote repositories hosted on the Internet or network, which involves:

Fetching

Fetching gets the changes from the original remote repository that you do not have yet. It never changes any of your local branches. Fetching gets all the branches from remote repositories, which you can merge into your branch or just inspect at any time.

To fetch updates from a remote repository:

  1. Choose Team > Git > Remote > Fetch.
  2. In the first panel of the wizard, select either the Configured repository (to use the path to the repository configured earlier) or Specify Git Repository Location option (to define the path to a remote repository that has not been accessed yet, its name, login, password, private key file, passphrase, and proxy configuration if required). Click Next.
  3. In the second panel of the wizard, choose the branches to fetch changes from. Click Finish.
    A local copy of a remote branch is created. The selected branch are updated in the Branches > Remote directory in the Git Repository Browser. Next the fetched updates can be merged into a local branch.

Pulling

When pulling some updates from a remote Git repository, the changes are fetched from it and merged into the current HEAD of your local repository.

To pull from a remote repository:

  1. Choose Team > Git > Remote > Pull.
  2. At the Remote Repository page of the wizard, select either the Configured repository (to use the path to the repository configured earlier) or Specify Git Repository Location option (to define the path to a remote repository that has not been accessed yet, its name, login, password, private key file, and passphrase, if required) and click Next.
  3. At the Remote Branches page of the wizard, choose the branches to be pulled changes from and click Finish. Your local repository is synchronized with the origin repository.

Pushing

Pushing enables you to contribute changes from your local Git repository into a public Git repository.

To push to a remote repository:

  1. Choose Team > Git > Remote > Push.
  2. In the first panel of the wizard, select either the Configured repository (to use the path to the repository configured earlier) or Specify Git Repository Location option (to define the path to a remote repository that has not been accessed yet, its name, login, password, private key file, and passphrase, if required) and click Next.
  3. In the second panel of the wizard, choose the branch(es) to push your edits to. Click Next.
  4. In the third panel of the wizard, choose the branch(es) to be updated in the Remotes directory of your local repository and click Finish. The specified remote repository branch is updated with the latest state of your local branch.
See Also
Git: Working with Branches

Legal Notices