Scmfile
Scmfile
Cluster: Zeta
Department: DCSE
1. Introduction 3-5
What is GITHUB?
A repository stores all of your project's files, as well as the revision history
for each one. Within the repository, you may discuss and monitor your
project's progress. The .git/ subdirectory within a project is a Git
repository. This repository keeps track of any changes made to files in your
project over time, creating a history. That is, if you delete the.git/
subdirectory, you are also deleting the history of your project.
Version Control Systems are the software tools for tracking/managing all
the changes made to the source code during the project development. It
keeps a record of every single change made to the code. It also allows us to
turn back to the previous version of the code if any mistake is made in the
current version. Without a VCS in place, it would not be possible to monitor
the development of the project.
Types of VCS
You must first access this webpage and then choose your operating
System by clicking on it. I will walk you through the processes for the
Windows operating system in this article.
Select the CPU for your system now. (Most of the system now runs on
64-bit processors.) Your download will begin when you pick a
processor.
Verify it from your email and you are all set to go.
Experiment No. 03
First of all, create a local repository using Git. For this, you have to make a
folder in your device, right click and select “Git Bash Here”. This opens the
Git terminal. To create a new local repository, use the command “git init”
and it creates a folder. git.
When we use GIT for the first time, we have to give the user name and
email so that if I am going to change in project, it will be visible to all.
For this, we use command
“git config --global user.name Name”
“git config --global user. email email”
Now add a new file in admin branch, do some changes in file and
commit the file.
If we switched to master branch, ‘nothing.txt’ file is not there. But the
file is in admin branch.
Staging Area: This is where we first put out code or files of the
working repository. The command that we use to stage code is,
“git add --a”, “git add File-Name” or “git add -A”. In simple terms,
staging means telling Git what files we want to commit (new
untracked files, modified files, or deleted files).
Git directory(repository): This is where all the commits are stored
whenever we make a commit. We can revert to an older version
of or project using the “git checkout” command from this
directory.