Working with Source Controls

A source control system is a component of a source repository and version management system. If you are building enterprise-level applications in a distributed environment, you will want to keep your source code in a safe vault with easy-to-manage, easy-to-integrate, and easy-to-create versions of each check-in. The source control repository will help you to manage your code.

There are plenty of source control repositories available in the market. Some of the most common repositories are Git, TFS, and SVN.

In general, repositories are being hosted on on-premise environments or in a cloud-hosted environment such as Microsoft Team Services, Team Foundation Server, GitHub, Bitbucket, and so on, and developers connect to the remote repository to clone the entire changeset on their system to perform changes on their code. When the changes are over and well tested, they push those changes to the remote.

In this chapter, we are going to discuss the following core points to use a source control repository such as Git and TFS Projects in a Visual Studio 2017 environment:

  • Working with Git repositories
    • Installing Git for Visual Studio 2017
    • Connecting to the source control servers
    • Getting started with Git repositories
    • Working with Git branches
    • Working with changes, staging, and commits
    • Syncing changes between local and remote
    • Working with pull requests for code review
    • Working with Git commit history
    • Undoing your changes
    • Tagging your commits
  • Working with TFS Projects
    • Connecting to a Team Project
    • Cloning an existing project folder
    • Performing a check-out operation to a file
    • Committing your changes to the repository
    • Undoing your local changes
    • Creating a code review request
    • Rolling back your existing change set
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.240.21