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

Setting up source control

Xamarin Studio comes equipped with integrated source control, including support for both subversion and Git-based repositories. Even if you don't intend to use the integrated source control features of Xamarin Studio, I still recommend that you set it up so your Solution Explorer can reflect the current version control state of the files in your project.

Whether you are using subversion or Git, if you are running on a Windows machine, you will need to install the respective plugin. Also, each option requires access to an outside repository. Refer to your source control provider's documentation for instructions on setting up an account and installing any required plugins.

Once your development machine is ready to support your choice of source control, the process of setting it up in Xamarin Studio differs only slightly between subversion and Git. Since I use Git for all of my projects, I will demonstrate setting up a Git repo within Xamarin Studio by using the following steps:

  1. Within Xamarin Studio, go to Version Control | Checkout.
  2. Select the Connect to Repository tab.
  3. From the Type drop-down list, choose Git.
  4. In the Url field, enter the URL to your repository.
  5. If the repository you have chosen is a valid Git repo, all of the remaining fields will populate automatically. Otherwise, complete the remaining fields as required.
  6. At the bottom of the form, choose a target directory for your local working copy.
  7. When you are done, your dialog box should resemble the following screenshot:
  8. Click OK.
  9. Enter your repo credentials when prompted.
  10. After your repository finishes downloading, you can close the dialog box.

Tip

Although I use BitBucket for my projects, there are other excellent Git providers available including GitHub, CodeBase, and many more. Be sure to research what each provider offers in the way of services and cost before making your decision, though. Once you select a source control provider you'll find that your choice becomes embedded in the life of your project, and changing it is not a simple matter.

主站蜘蛛池模板: 西畴县| 诸暨市| 韩城市| 丹寨县| 江都市| 方城县| 拉孜县| 成都市| 布尔津县| 临海市| 黑山县| 利辛县| 乌兰察布市| 湖南省| 呈贡县| 博湖县| 鹤庆县| 安多县| 崇阳县| 金湖县| 吉木乃县| 曲靖市| 新绛县| 石首市| 丹阳市| 巴里| 武平县| 洪湖市| 清苑县| 甘孜县| 榆树市| 定安县| 伊金霍洛旗| 黔西| 江安县| 上饶县| 日喀则市| 浪卡子县| 津市市| 武功县| 阜新市|