03 Git Handout



Download 6,87 Mb.
Pdf ko'rish
bet1/4
Sana28.06.2022
Hajmi6,87 Mb.
#715817
  1   2   3   4
Bog'liq
03 - Git Handout



Version Control
with GIT
DEVOPS
BOOTCAMP


What is Version Control? 
Also known as "source control"
Practice of tracking and managing changes to software code
It enables multiple people to simultaneously work on a single project
Code Repository
Code is hosted centrally on the internet
Every developer has an entire copy of the code locally


Basic Concepts of Version Control
Version Control keeps a history of changes
Every code change and file is tracked!
You can revert commits
Each change labelled with commit message
Version 1
Version 2
Fix button...
Add list for...
Git is the most used
version control system


Basic Concepts of Git - 1
Remote Git Repository: where the code is hosted, e.g. on Gitlab
Local Git Repository: local copy of the code on your machine
Git Client: to connect and execute git commands
or GitHub
can be UI or Command Line Tool
Local Repo
Local Repo
Remote
Code is fetched ("pulled") from
remote repo and "pushed" to it


Basic Concepts of Git - 2
Most of the time, Git knows how to merge changes automatically
But you have a "Merge Conflict", when e.g. same line was changed. Then
you need to resolve it manually
To avoid merge conflicts:
Best Practice
: Push and Pull often from remote
repository to stay in sync
Note: Breaking changes doesn't affect you until you pulled the new code


Working with Git - 1
To include the changes of a file
into the next commit
Moves the changes from
"working directory" to the
"staging area"
git add :
To save your changes in your local
repository
Creates a new commit, which you
can go back to later if needed

Download 6,87 Mb.

Do'stlaringiz bilan baham:
  1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish