官术网_书友最值得收藏!

Committing a project to a remote repository

So far, we have been working in the local Git repository. But you may want to push your project to a remote repository if you want to share your code and/or make sure that you do not lose your local changes. So in this section, we will learn how to push a local project to a remote Git repository. If you do not have access to a Git repository, you could create one at http://www.github.com.

  1. Create a new repository in the remote Git server, named GitPluginTest.
  2. In the Git Repositories view, right-click on the Remotes node and select the Create Remote... option:

Figure 3.28: Adding a remote Git repository

  1. By convention, name of the remote repository is origin. Click OK. In the next page, set up the configuration for push. Click on the Change button next to the URI textbox:

Figure 3.29: Setting up a remote Git URI

  1. Enter the URI of the remote Git repository. The wizard extracts host, repository path, and protocol from the URI. Enter your user ID and password and click Finish:

Figure 3.30: Configuring a Git push

  1. Click Save and Push. This sends files in the local master branch to the remote Git repository.
主站蜘蛛池模板: 顺昌县| 新疆| 勐海县| 甘泉县| 枣阳市| 江孜县| 海宁市| 密山市| 噶尔县| 自治县| 北安市| 清丰县| 灵山县| 托克托县| 原阳县| 玉环县| 太仆寺旗| 平昌县| 辛集市| 澄城县| 开远市| 苍梧县| 简阳市| 长子县| 永新县| 元谋县| 新营市| 峡江县| 遂川县| 荣昌县| 九江市| 宜丰县| 长兴县| 汤阴县| 大冶市| 泸州市| 贞丰县| 沧州市| 桐乡市| 新疆| 宜良县|