Day 08: Git

git1)What is Git?

Git is a version control system that allows you to track changes to files and coordinate work on those files among multiple. Git keeps a record of who made changes to what part of a file and you can revert to earlier versions of the file if needed.

2)What is Github?

GitHub is a platform that provides hosting for version control using git.

It is used for hosting open-source projects. GitHub is a very popular platform.

3)What is Version Control? How many types of version controls do we have?

A system that tracks changes to a file or set of files over time so that you can recall specific versions later.

There are two main types of version control systems.

!) Centralized Version Control System

!!) Distributed Version Control System

4)Why do we use distributed version control over centralized version control?

!) Better Collaboration

!!) Improved Speed

!!!) Greater Flexibility

!!!!) Enhanced Security

Task:

1)Install Git on your computer

sudo apt-get install git

2)Create a free account on GitHub

You can create your account at github.com

3)Create a new repository on GitHub and clone it to your local machine

git clone <url>

4)Make some changes to a file in the repository and commit them to the repository using Git.

git commit -m "message"