Professional Documents
Culture Documents
Allows a group of people that are working on a project to maintain a recorded registry of the
modification done. The changes are done and updated into the central directory. The current state
of the project will be visible to all the members.
Version control is a system that records changes to a file or set of files over time so that a
specific version can be recalled later. These versions are recorded in a repository and can be
recalled from the same. There are three types of Version Control Systems:
Distributed: Each one has their own copy and then collaborate with the rest by updating the
changes intro a centralized server.
What is a Repositoy?
It is a directory or storage space where the projects are placed. The repository can be local if it is
only accessible in the user computer, or can be in another online host (such as Github).
II. What is Git?
Is a Distributed Version Control tool that supports distributed non-linear workflows by providing
data assurance for developing quality software. It lets you and your team of developers work
together on the same project from anywhere. Team members can work on files and easily merge
their changes into one source.
Features:
Creating Repositories:
o git init: Creates a new Git repository
o git clone: Creates a copy of a repository on the local computer used
o git fork: When you fork a repository, you copy the original repository on your
Github account
Making changes:
o status
o add
o commit
Parallel Development
o branch
o merge
o rebase
Syncing repositories
o origin: [ git remote add origin <repository_link> ] Allows to add a remote
repository
o push: [git pull origin master] Allows to copy all the files from the master branch
of remote repository to your local repository
o pull: [ git push origin master ] Allows to push your local changes into central
repository