Sagar SCM File
Sagar SCM File
Cluster: i-Alpha
Department: DCSE
1
[Type here] [Type here]
CHITKARA UNIVERSITY
CHANDIGARH-PATIALA NATIONAL HIGHWAY
RAJPURA (PATIALA) PUNJAB-140401 (INDIA)
2
[Type here] [Type here]
3
[Type here] [Type here]
EXPERIMENT NO. 1:
Aim: Introducing Version Control – Git client (CLI, GUI), Linux environment
Emulation, Advantages of VCS, Installing git CLI and git GUI.
Theory:
What is Git?
Git is a free and open-source version control system used to handle small to very large
projects efficiently. This is also used for tracking changes in any set of files and usually
helps in coordinating work among members of a team. Hence, enables multiple
developers to work together on non-linear development.
History of VCS: The very first Version Control System was created in 1972 at Bell
Labs where they also developed UNIX. The first one was called SCCS (Source Code
Control System). It was available only for UNIX and only worked with Source Code
files. Some types of Version Control Systems are:
• Local VCS: No internet is needed because it uses a database to keep and track of
files.
• Centralized VCS: Centralized version control systems are based on the idea that there
is a single “central” copy of your project somewhere (probably on a server), and
programmers will “commit” their changes to this central copy. This simply means
recording the change in the central system (OS).
4
[Type here] [Type here]
• Distributed VCS: A type of version control where the complete codebase including its
full version history is mirrored on every developer's computer.
5
How to install GIT on Windows?
There are many ways to install Git on Windows. The most official build is available
for download on the Git website. Go to https://gitscm.com/download/win and after a
few settings the download will start automatically.
o Then click on Installation Git and click on whatever system you want, available are
three- Windows, Apple and Linux.
6
[Type here] [Type here]
7
[Type here] [Type here]
o After some more simple and easy settings and choosing your favourable environment
and doing some SSH settings, it finally starts exporting the files in system and
completes the Git hub wizard.
8
[Type here] [Type here]
9
[Type here] [Type here]
o Git bash got installed in system and seemed and opened on clicking seems of like:
10
[Type here] [Type here]
You can also check the version of installed software by checking git version.
11
[Type here] [Type here]
12
[Type here] [Type here]
Experiment 2
Aim: Setting up GitHub Account and Adding Collaborators on GitHub
Repository
Theory:
Whenever you make a repository in GitHub, not everyone has the permission to
change or push codes into your repository. The users have a read-only access. In
order to allow other individuals to make changes to your repository, you need to
invite them to collaborate to the project.
Being a collaborator, the user can create, merge and close pull requests in
the repository. They can also remove them as the collaborator.
Procedure:
13
[Type here] [Type here]
14
[Type here] [Type here]
15
[Type here] [Type here]
16
[Type here] [Type here]
10.After entering the password, you can manage access andadd/remove team
members to your project.
17
[Type here] [Type here]
Experiment 3
Aim:
Theory:
Fast-forward merge: When no new commits are added to the main branch since
branching.
Three-way merge: When the main branch has diverged, requiring Git to create a
new merge commit.
Procedure:
18
[Type here] [Type here]
20
[Type here] [Type here]
Experiment 4
Aim:
Theory:
The push and pull commands are used to synchronize a local repository with a remote
repository:
Procedure:
21
[Type here] [Type here]
22
[Type here] [Type here]
2.2 If conflicts arise, resolve them manually and commit the changes.
23