Name: Sonam Gupta Roll No.: 201903015 (14) Subject: Devops Lab
Name: Sonam Gupta Roll No.: 201903015 (14) Subject: Devops Lab
Name: Sonam Gupta Roll No.: 201903015 (14) Subject: Devops Lab
Global Repository:
The global repository is the hub of the repository domain. Use the global
repository to store common objects that multiple developers can use through
shortcuts. These objects may include operational or application source
definitions, reusable transformations, mapplets, and mappings.
What is Git ?
Git is a distributed version control framework that is free and open source.
Linus Torvalds, the developer of the Linux operating system kernel, created it in
2005.
Git is used for project collaboration and history exploration. Git provides all of
the benefits of a distributed Version Control system.
Features of git:
Fully Distributed VCS
Every participating node in distributed VCS has a complete copy of the project
as well as a full revision history of each file. This allows you to work locally
without a network connection all while allowing you to collaborate when you
are back online via central remote repositories. Being distributed git implicitly
provides you the advantage of having multiple backups and choice to follow
workflow of your choice locally.
Branching
This is a very powerful feature that allows for parallel creation and simple
merges. Any new feature can be tested and worked on around the branches, and
then integrated with the production branch almost instantly without affecting
other people's code. Working with git offers an isolated environment for any
change to your codebase made by any team member due to branch magic. This
contributes to the adoption of feature-based workflow and also gives us the
ability to perform experimentation that can be quickly discarded.
Figure 1
Figure 2
Checking git status by using “git status” command:
Figure 3
Figure 4
Taking remote access to that new created repo using “git remote add origin
repo_link” and Pushing files to repo using command “git push origin master”:
Figure 5
Finally all changes made in directory pushed into repo as given below:
Figure 6
Checking history operations that are done using “git log” command:
Figure 7
Figure 8
Getting history info of particular file created using “git log file_name”:
Figure 9
Editing created file using “vim file_name” command and after editing, checking
git status using “git status” command:
Figure 10
Checking difference between pushed file on github and edited file using ”git
diff file_name” command:
Figure 11
Conclusion: By doing this experiment I get to know more about git commands
git log which is used to check history related to some repository and it can also
be used to check history status of specific file or folder by specifying name of it
after git log then vim command which can edit file at that moment and many
more.