推送到远程存储库
让我们推送到您在本教程的开头时创建的本地存储库。
右键单击“tutorial”目录,然后单击“Push”。
![Click Push](/static/31c650788cd483a377bd917d4d6a1065/5a190/01.png)
点击“Manage”。
![Click the Manage button.](/static/b9f2e4792f978e6ef2b12af975ec95aa/5a190/02.png)
输入以下内容:
- 远程:“origin”
- URL:您之前在 Backlog 中创建的远程存储库的 URL
单击“Add New/Save”,“origin”现在将对应于远程存储库 URL。
单击“OK”结束。
![Enter the remote repository URL and click the Add New/Save button](/static/5d4d2ae168a917c44e88e6a22e04afe8/5a190/03.png)
![the URL of the remote repository you previously created in Backlog](/static/e6d59a485e7d6bf8a6052e744caef525/5a190/04.png)
如果您在控制台上,如果您在推送/拉取时省略了远程名称,在默认情况下将会使用“origin”远程存储库。这是因为惯例通常使用“origin”作为远程名称。
在 Push 屏幕上选择“origin”作为 Remote 项,然后单击“OK”。
输入您 Backlog 的电子邮件和密码。然后点击“continue”。
![Enter your Backlog email and password. Then click continue](/static/7ab1dcf438d608f27e70fcd1c6762e25/5a190/05.png)
成功完成推送后,您将看到下面屏幕。
![If you see success on the screen it means success.](/static/288f4ccd301237c3c4498712a619ec2e/5a190/06.png)
打开 Backlog 上的 Git 页面,您会发现在“Recent Updates”下面,列出了一个与您推送到远程存储库相对应的最新更新。
![The push item is added to the recent updates.](/static/e3d59d8370684b8c5fde961e0fcf69ba/5a190/07.png)
推送的文件也会出现在远程存储库的文件列表中。
![The file from the pushed repository is added.](/static/6313a45522f2a0f08240aa914026bf94/5a190/08.png)
接下来,我们将克隆这个远程存储库。