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

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.

主站蜘蛛池模板: 渑池县| 祁连县| 台前县| 德庆县| 洪湖市| 广德县| 潼南县| 武胜县| 孝昌县| 赤峰市| 靖江市| 张掖市| 杭州市| 郧西县| 华池县| 镶黄旗| 托克托县| 高唐县| 浠水县| 宣城市| 南召县| 松滋市| 上杭县| 普陀区| 扶余县| 武乡县| 四子王旗| 宁晋县| 深泽县| 万州区| 兴义市| 大足县| 营口市| 肇庆市| 七台河市| 沁水县| 思南县| 红安县| 农安县| 科尔| 永寿县|