0% found this document useful (0 votes)
0 views2 pages

Git and GitHub

Git is a distributed version control system that allows users to maintain different versions of a project, enabling easy collaboration and rollback to previous versions. It consists of four main parts: the working directory, staging area, local repository, and central repository. Each collaborator has a local copy of the project, allowing them to work independently before syncing with the central repository on GitHub.

Uploaded by

gatwirifloridah4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

Git and GitHub

Git is a distributed version control system that allows users to maintain different versions of a project, enabling easy collaboration and rollback to previous versions. It consists of four main parts: the working directory, staging area, local repository, and central repository. Each collaborator has a local copy of the project, allowing them to work independently before syncing with the central repository on GitHub.

Uploaded by

gatwirifloridah4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Git and GitHub Introduction

What is Git?
Git is a distributed version control system. So, What is a Version
Control System?
A version Control system is a system that maintains different versions
of your project when we work in a team or as an individual. (system
managing changes to files) As the project progresses, new features
get added to it. So, a version control system maintains all the
different versions of your project for you and you can roll back to any
version you want without causing any trouble to you for maintaining
different versions by giving names to it like MyProject,
MyProjectWithFeature1, etc.
Distributed Version control system means every collaborator(any
developer working on a team project)has a local repository of the
project in his/her local machine unlike central where team members
should have an internet connection to every time update their work
to the main central repository.

Git Repository Structure.


It consists of 4 parts:
1. Working directory: This is your local directory where you
make the project (write code) and make changes to it.
2. Staging Area (or index): this is an area where you first
need to put your project before committing. This is used
for code review by other team members.
3. Local Repository: this is your local repository where you
commit changes to the project before pushing them to
the central repository on Github. This is what is provided
by the distributed version control system. This
corresponds to the .git folder in our directory.
4. Central Repository: This is the main project on the
central server, a copy of which is with every team
member as a local repository.

You might also like