Git: Fetch from Git

Fetches remote sources into your local Git repository.

Fetching a repository copies changes from the remote repository into your local system, without modifying any of your current branches. Once you have fetched the changes, you can merge them into your branches or simply view them.

Remote Repository

Specify the information for the remote repository from which you want to fetch changes.

Remote Name: Identifier that you will use when referring to the remote repository. Enter a descriptive, unique name.

Repository URL: The URL of the Git repository from which you are fetching files. Your Git administrator should be able to prove you with this information.

User Name: If the remote repository does not allow anonymous read access, enter your user name for the server in this field. If your repository permits anonymous access, you can skip the remaining fields on this screen and click Next to continue.

Password: If your repository requires a login with user name and password, select this option, then enter your password in the field. You can then click Next to continue.

Private Key File: If your repository connection uses a private key file, select this option, then enter the path to the private key file. You can click Browse to select the file from a standard directory browser.

Passphrase: If your private key file requires a passphrase, enter the passphrase.

Remote Branch

Specify the branches to include when you fetch changes from the remote repository. Each branch in the repository is represented on the right side. To select a branch, check the box next to the branch name.

Note that the changes you fetch will not affect any branches in your local repository. You can review the changes, then either ignore them or merge them into your local repository.

Summary

Displays the selected options for the operation. To make any changes, click Back. To perform the operation, click Finish.

Related Topics

Using Versioning