Push to a remote repository
Let’s push to the local repository you created at the beginning of this tutorial.
Open Sourcetree and double-click the “tutorial” repository.
![Select tutorial repository](/static/0cc13328c7f40b695d8fd51df47d6bc8/5a190/01.png)
Click the “Settings” button on the right side of the toolbar.
![Click the setting button at the right side in the tool bar on the repository operation screen](/static/c6f1bfe4ed2fbcf12a9e7ad0ec23e711/5a190/02.png)
Click “Add.”
![Click Add button](/static/a313d6f7a04856ecdbd03aed6fbb74b8/5a190/03.png)
Enter the following:
- Remote name:
origin
- URL / path: the URL of the remote repository you previously created in Backlog
![The URL of the remote repository you previously created in Backlog](/static/ff228501adc615bf4497bd7b9e4f574d/5a190/04.png)
Click “OK.”
![Enter the URL of the remote repository and click OK button](/static/87cbe5b3a7ba3d3c8e22dd07e31dc331/5a190/05.png)
The remote repository “origin” will now show in the “remotes” list, and we can start pushing changes to Backlog.
![origin was added](/static/39c808b4d397534952da1f28d6f5ef78/5a190/06.png)
If you are on Console, the "origin" remote repository will be used by default if you omit the remote name when pushing/pulling. That is because convention commonly uses "origin" as a remote name.
Now click the “Push” icon on the toolbar above.
![Click the push button at the tool bar on the tutorial repository operation screen](/static/cb53429d1701cdb5eb3aa08e6e16f645/5a190/07.png)
Select the “main” checkbox and click “OK.”
![Click the OK button after check the check box of main](/static/808477d9e97f15038c6cd02c5c38ebf0/5a190/08.png)
When you have successfully completed the push, “origin/main” — which represents the commit on remote — will be shown in the “description” column of the commit.
![The origin/main shown by the remote repository has been added](/static/11b00e837933b61f41282d1fc361dd21/5a190/09.png)
Open the Git page on Backlog, and you will find a new update corresponding to your push to the remote repository listed under “Recent Updates.”
![The push item is added to the recent updates.](/static/db1065bee8462ca92acbf77f301de80a/5a190/10.png)
The pushed file will also appear in the list of files in the remote repository.
![The file from the pushed repository is added.](/static/24c9298d0a66bdd953826916280add0b/5a190/11.png)
Next, we’ll clone this remote repository.