What’s a version control system?

A version control system, or VCS, tracks the history of changes as people and teams collaborate on projects together. As the project evolves, teams can run tests, fix bugs, and contribute new code with the confidence that any version can be recovered at any time. Developers can review project history to find out:

What’s a distributed version control system?

Git is an example of a distributed version control system (DVCS) commonly used for open source and commercial software development. DVCSs allow full access to every file, branch, and iteration of a project, and allows every user access to a full and self-contained history of all changes. Unlike once popular centralized version control systems, DVCSs like Git don’t need a constant connection to a central repository. Developers can work anywhere and collaborate asynchronously from any time zone.

The use of VCS using Github

1. GitHub Account

Create a Account on github.com
github.com
Create a repository on GitHub
Create a repository
Provide details of repository on your account
details of repository
URL of repository on your account
URL of repository

2. Download git

https://git-scm.com/downloads
Download Git

3. Git clone

Clone a repository
git clone https://github.com/muhammad-asher/VCS-implementation
git clone

4. Git Status

Git Status
Git Status

5. Git Add

Git Status
Git add .
Git Add Git Status
Created simple html file at local repository
Simple Html File
Adding file to repository
git add mc1.html

6. Git Commit

Changes made with message to track changes

git commit -m “Message ”
git commit -m “First Commit ”

git commit -m first commit

7. Git push

Push changes to the server
git push

8. Edit Online

How to edit files at repository
Edit Online Edit Online Edit Online
Version Hierarchy
Edit Online

9. Git Pull

To get changes from Github to local repository
Git Pull

9. Merge Conflicts

File changed at github.com
changed file at Github
File changed at Local PC repository
changed file at Github
Git add and commit
Merge Conflicts Merge Conflict Resolved

10. Git Log

Details of commits
Git log

11. Git Branch

When you're working on a project, you're going to have a bunch of different features or ideas in progress at any given time – some of which are ready to go, and others which are not. Branching exists to help you manage this workflow.

Git branch
Create a Branch
Create a Branch To merge a Branch
Commit Added
Commit Added Merge branches
Delete Branch
Delete branch
Muhammad Asher
Github Repository Link