After you commit the changes from your project to the local Git repository, you can push them to the remote Git repository. Performing a push sends all of the files you have committed on your current branch to the remote repository. This is a way to back them up to source control and for other users to have access the changes you have made.
- Do one of the following, depending on the part of the user interface you are using:
Ribbon Select the Source Control ribbon. In the Project section select Push.
- Right-Click In the File List open, right-click on any file and select Source Control > Project > Push.
- Local Toolbar In the local toolbar of the File List, click , then select Project > Push.
(Optional) If you did not commit your files before starting the push, a dialog asks if you want to commit your files. Click Yes to continue.
See Committing Source Control Files—Git.Note
Note: You must commit all modified files to proceed with the push.
The Select Remote for Push dialog opens. From the Remote drop-down, select the repository you want to push to.
(Optional) To add or remove a remote repository, click . The Remote Repositories dialog opens.How to Add a Remote Repository
How to Remove a Remote Repository
In the Remote Repository field, enter the address of the new repository.
Note: You may need to obtain this information from your system administrator.
In the Alias field, enter a name for the new repository. This is the name that will appear in the Remote drop-down when you need to select a remote repository.
Note: Repository names cannot include spaces.
- From the Remote Repository list, select the repository you want to delete.
- Click Remove. The repository is removed from the list of available repositories.
- In the Select Remote for Push dialog, click OK. If the Log In dialog opens, complete the User name and Password fields and click OK.
If the local changes are different from those in the remote, you will see an error in the Progress dialog during the push. Perform a pull, then attempt the push again. See Pulling Files from a Remote Repository—Git.
Note: If you use CloudForge Git as your remote repository, it may give you an incorrect URL. If you enter the incorrect URL in when binding your project, you will receive an error when you push or pull.
To correct this error, change the URL from this format…
…to this format…
Removing the username@ section from the URL allows it to work properly when performing a push or pull.