Version Control

Lesson Dates: 4 May

Things Covered: Version Control


Version Control System (VCS) is a software which keeps track of code in a special kind of database. It allows many developers to work on a code, check the history of a code, trace of the origin of the code and edit the code all at the same time. There are many softwares that can be used for version control such as Fossil, GNU arch, Mercurial, etc. However, Git is by far the most popular, open source and distributed VCS.

Reasons for version control

How does VCS work?


Version Control


Basic Git Commands

Ways to keep track of your work using Git:

GitHub Desktop


GitHub Desktop


How to use GitHub Desktop:

Step 1: Download GitHub Desktop here.

Step 2: Login into GitHub Desktop. Use the login details of your current GitHub account.

Creating new repositry: In the Menu bar of the page, Add new repositry, set the directory of your repository and set it to Master Branch. Initialise your repository with a README. Your repository will be initialised in your Local and Remote Branch.

To update repository: Make changes in the Staging Area (i.e your web editor) and save it. Go to GitHub Desktop and your changes will be seen with a ✓ on the left bar of the page. On the bottom left of the page, Commit to master, then Push to Origin.

Command-line using Git Bash


Git Bash

Step 1: Download Git Bash here.

Step 2: Configure your Git Bash.

Command-line tutorials/resources: