0% found this document useful (0 votes)
7 views

DevOps Notes-1-2

Notes

Uploaded by

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

DevOps Notes-1-2

Notes

Uploaded by

meakela0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Pevops Chapter 2.Version Control-GIT 2,1 Introduction to GIT Gi Git is 2 popular version control system. tt was created by Linus Torvalds 19 and has been maintained by Junio Hamano since then It is used for: + Tracking code changes + Tracking who made changes + Coding collaboration What does Git do? Manage projects with Repositories Clone a project to work on a local copy ae crore o Pie track changes with Staging and Committing Granch and Merge to allow for work on different parts and vel a project «Bult the latest version of the project to @ local COPY 2 push local updates to the main project rsions of ing with Git Ider, making it a Repository Mer folder to keep track of changes in that folder dded or deleted, it is considered modified ou want to Stage ed, which prompts Git to store Initialize Git on a fol Git now creates a hi when a file Is changed, a You select the modified files y« The Staged files are Commi a permanent snapshot of the files Git allows you to see the full history of every commit You can revert back to any previous: commit. 1 Git does not store a separate copy of every file in every Keeps track of changes made in each commit! commit, but 2.2. What is Git Yo «Git js a fide! and open Sour istrIBited version control system designed to handle everything from small tO vety large projects with speed and efficiency. «Git is easy to learn and has tiny footprint with lightning fast perfor outelasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap: local branching, convenient staging areas, and multiple ‘mance. It workflows. © scanned with OKEN Scanner eo About Version Control System and Types basically sonwa * Git is aVersion Control system or VCS. VCS is allows us to UN record changes within one or more 7 allmade or pending changes within one or x s le with many files, Ves enables us to control the WhO Bi allows us to revert one or more files any of thelr Pits to om is Project to a previous version. We can also compare TUN, fle, when i two versions in.orier to see exactly what was chaPBE™ Vt ange was made changed and who made the change. We can also see Yi Me ‘auniversalsystem that 's..-Why.am Lmentioning files instead of code? Beeaiee | i rd. files, can be used for version control of all types ie pictures, AutoCAD files, Visual Studio Project, re designed to "fo or to cancel onaproject this just a kind of VCS. otthe only VCSin use. Moreover, Git 365 of WCS are = Local'Ver'sion Control System ‘entralized Version Control System ‘+ Distributed Version Control System ~jhocal Version Control System : Version Database A local version control system isa local database located on your local computer, / in which every file change is stored as a patch. + Every patch set contains only the changes made to the file since its last version. Invorder to see what the file looked like at any given moment, it is necessary to add up all the relevant patches to the file in order until that given moment. f- The main problem with this is that everything is stored locally. If anything were to happen to the local database, all the patches would be lost. Ifanything Were to ae to a single version, all the changes made after that version would be lost. so, collaborating with other developers or a teamn is v 0 ‘eam is ver en Ty hard or nearly © scanned with OKEN Scanner

You might also like