推送到遠端儲存庫
讓我們推送到您在本教程的開頭時建立的本地儲存庫。
開啟 Sourcetree 並雙擊「tutorial」儲存庫。
![Select tutorial repository](/static/0cc13328c7f40b695d8fd51df47d6bc8/5a190/01.png)
單擊工具列右側的「Settings」按鈕。
![Click the setting button at the right side in the tool bar on the repository operation screen](/static/c6f1bfe4ed2fbcf12a9e7ad0ec23e711/5a190/02.png)
單擊「Add」。
![Click Add button](/static/a313d6f7a04856ecdbd03aed6fbb74b8/5a190/03.png)
輸入以下內容:
- 遠端名稱:
origin
- URL/路徑:您之前在 Backlog 中建立的遠端儲存庫的 URL
![The URL of the remote repository you previously created in Backlog](/static/ff228501adc615bf4497bd7b9e4f574d/5a190/04.png)
單擊「OK」。
![Enter the URL of the remote repository and click OK button](/static/87cbe5b3a7ba3d3c8e22dd07e31dc331/5a190/05.png)
遠端儲存庫「origin」現在將顯示在「remotes」清單中,我們可以開始將更改推送到 Backlog。
![origin was added](/static/39c808b4d397534952da1f28d6f5ef78/5a190/06.png)
如果您在主控台上,如果您在推送/拉取時省略了遠端名稱,則在預設情況下將會使用「origin」遠端儲存庫。這是因為慣例通常使用「origin」作為遠端名稱。
現在單擊上方工具列上的「Push」圖示。
![Click the push button at the tool bar on the tutorial repository operation screen](/static/cb53429d1701cdb5eb3aa08e6e16f645/5a190/07.png)
選取「main」勾選方塊,並單擊「OK」。
![Click the OK button after check the check box of main](/static/808477d9e97f15038c6cd02c5c38ebf0/5a190/08.png)
成功完成推送後,「origin/main」 - 代表遠端提交 - 將顯示在提交的「description」欄位中。
![The origin/main shown by the remote repository has been added](/static/11b00e837933b61f41282d1fc361dd21/5a190/09.png)
開啟 Backlog 上的 Git 頁面,您會發現在「Recent Updates」下面,列出了一個與您推送到遠端儲存庫相對應的最新更新。
![The push item is added to the recent updates.](/static/db1065bee8462ca92acbf77f301de80a/5a190/10.png)
推送的檔案也會出現在遠端儲存庫的檔案清單中。
![The file from the pushed repository is added.](/static/24c9298d0a66bdd953826916280add0b/5a190/11.png)
接下來,我們將克隆這個遠端儲存庫。