SlideShare a Scribd company logo
1 of 19
GIT
Origin
Linus Torvald
What is git?
Git allows groups of people to work on the
same documents (often code) at the same time,
and without stepping on each other's toes.
Version Control
system that records changes to a file or set of files
over time so that you can recall specific versions later
Why git better?
Working on project
In a managed project
we have virtual “save
point” of the entire file
system
Why version control system?
Go back to a better previous state
Backup everything
Change is your friend
Collaboration
Collaboration
Everyone knows what
others are working on
Easily integrate other
developer's work
Working With Git
● Set up Repository
● Make Change and Commit
● Access and diff with past version
● Time Wraps (Branching)
● Collaboration
Setting up repository
# Open project folder
cd myproject
# Setting up repository
git init
try.github.io
Project Change List
A change List represents change in a project
from state A to state B
Change include:
1. New files
2. Deleted (removed) files
3. Modified files
Editing Change List
# Add main.c to the change list
git add main.c
# Add all files in current directory
git add .
# Add all .txt files to change list
git add *.txt
Commit a Change list
git commit -m “initial commit”
Getting status
git status
git log
Remote repository
# Add
git remote add origin
# Add
git push -u origin master
Branching
● Context switching is inevitable
● A friend needs your help for a version he's
working on
● Working in a new feature, a new bug was found
in a released version
● Git branch
● Git checkout
●
merging
● Git merge fixes
● Git branch -d fixes
● git pull origin master

More Related Content

What's hot

Git and GitGHub Basics
Git and GitGHub BasicsGit and GitGHub Basics
Git and GitGHub BasicsAswin Barath
 
Git strategies for DevOps
Git strategies for DevOpsGit strategies for DevOps
Git strategies for DevOpsAhmad Iqbal Ali
 
Version control with Git & GitHub
Version control with Git & GitHubVersion control with Git & GitHub
Version control with Git & GitHubbenko
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hubNaveen Pandey
 
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGit in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGina Bustos
 
Learning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfLearning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfJayprakash677449
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHubCuong Ngo
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucketMedhat Dawoud
 

What's hot (20)

Git and GitGHub Basics
Git and GitGHub BasicsGit and GitGHub Basics
Git and GitGHub Basics
 
Git Training
Git TrainingGit Training
Git Training
 
Git strategies for DevOps
Git strategies for DevOpsGit strategies for DevOps
Git strategies for DevOps
 
Overview of git
Overview of gitOverview of git
Overview of git
 
Version control with Git & GitHub
Version control with Git & GitHubVersion control with Git & GitHub
Version control with Git & GitHub
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepoGit in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git hub visualstudiocode
Git hub visualstudiocodeGit hub visualstudiocode
Git hub visualstudiocode
 
Git overview
Git overviewGit overview
Git overview
 
Learning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdfLearning Git and GitHub - BIT GDSC.pdf
Learning Git and GitHub - BIT GDSC.pdf
 
Git session 1
Git session 1Git session 1
Git session 1
 
Git & GitHub
Git & GitHubGit & GitHub
Git & GitHub
 
Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
 
Bitbucket and Git
Bitbucket and GitBitbucket and Git
Bitbucket and Git
 
Git: Git'ing the Basic
Git: Git'ing the BasicGit: Git'ing the Basic
Git: Git'ing the Basic
 
Git & GitHub N00bs
Git & GitHub N00bsGit & GitHub N00bs
Git & GitHub N00bs
 

Viewers also liked

Apps for good - Review It
Apps for good - Review ItApps for good - Review It
Apps for good - Review ItFozzyfoster
 
Elasticsearch meetup final_2014_04
Elasticsearch meetup final_2014_04Elasticsearch meetup final_2014_04
Elasticsearch meetup final_2014_04marc_harrison
 
Pp curiosities for teens
Pp curiosities for teensPp curiosities for teens
Pp curiosities for teensPatricia Yada
 
Pdk chat tinney and unwin spr 2014
Pdk chat   tinney and unwin spr 2014Pdk chat   tinney and unwin spr 2014
Pdk chat tinney and unwin spr 2014PDKUBC
 
Proyecto de intervención socio educativo "Comprensión lectora"
Proyecto de intervención socio educativo "Comprensión lectora" Proyecto de intervención socio educativo "Comprensión lectora"
Proyecto de intervención socio educativo "Comprensión lectora" Jeszita Alvarezz
 
Vincent C. Copeland Resume
Vincent C. Copeland Resume Vincent C. Copeland Resume
Vincent C. Copeland Resume Vincent Copeland
 
Dr. coniglio pp present pdkubc feb 18 2014
Dr. coniglio pp present pdkubc feb 18 2014Dr. coniglio pp present pdkubc feb 18 2014
Dr. coniglio pp present pdkubc feb 18 2014PDKUBC
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processingNashid Alam
 
2.Image formation (Backup slide 2)
2.Image formation (Backup slide 2)2.Image formation (Backup slide 2)
2.Image formation (Backup slide 2)Nashid Alam
 
3.Wavelet Transform(Backup slide-3)
3.Wavelet Transform(Backup slide-3)3.Wavelet Transform(Backup slide-3)
3.Wavelet Transform(Backup slide-3)Nashid Alam
 
Masters' whole work(big back-u_pslide)
Masters' whole work(big back-u_pslide)Masters' whole work(big back-u_pslide)
Masters' whole work(big back-u_pslide)Nashid Alam
 
M 2 presentation(final)
M 2 presentation(final)M 2 presentation(final)
M 2 presentation(final)Nashid Alam
 
ALP Butterfly
ALP ButterflyALP Butterfly
ALP Butterflyleon48735
 
Alp Butterfly
Alp ButterflyAlp Butterfly
Alp Butterflyleon48735
 
White Stone - KAM
White Stone - KAMWhite Stone - KAM
White Stone - KAMleon48735
 
添削ラボ 外部資料
添削ラボ 外部資料添削ラボ 外部資料
添削ラボ 外部資料nono0905
 
Presentazione Stefano Alberici, SunPower
Presentazione Stefano Alberici, SunPowerPresentazione Stefano Alberici, SunPower
Presentazione Stefano Alberici, SunPowerValentina Maggiore
 

Viewers also liked (19)

Apps for good - Review It
Apps for good - Review ItApps for good - Review It
Apps for good - Review It
 
Elasticsearch meetup final_2014_04
Elasticsearch meetup final_2014_04Elasticsearch meetup final_2014_04
Elasticsearch meetup final_2014_04
 
Pp curiosities for teens
Pp curiosities for teensPp curiosities for teens
Pp curiosities for teens
 
Pdk chat tinney and unwin spr 2014
Pdk chat   tinney and unwin spr 2014Pdk chat   tinney and unwin spr 2014
Pdk chat tinney and unwin spr 2014
 
Animais
AnimaisAnimais
Animais
 
Proyecto jaz
Proyecto jazProyecto jaz
Proyecto jaz
 
Proyecto de intervención socio educativo "Comprensión lectora"
Proyecto de intervención socio educativo "Comprensión lectora" Proyecto de intervención socio educativo "Comprensión lectora"
Proyecto de intervención socio educativo "Comprensión lectora"
 
Vincent C. Copeland Resume
Vincent C. Copeland Resume Vincent C. Copeland Resume
Vincent C. Copeland Resume
 
Dr. coniglio pp present pdkubc feb 18 2014
Dr. coniglio pp present pdkubc feb 18 2014Dr. coniglio pp present pdkubc feb 18 2014
Dr. coniglio pp present pdkubc feb 18 2014
 
6.frequency domain image_processing
6.frequency domain image_processing6.frequency domain image_processing
6.frequency domain image_processing
 
2.Image formation (Backup slide 2)
2.Image formation (Backup slide 2)2.Image formation (Backup slide 2)
2.Image formation (Backup slide 2)
 
3.Wavelet Transform(Backup slide-3)
3.Wavelet Transform(Backup slide-3)3.Wavelet Transform(Backup slide-3)
3.Wavelet Transform(Backup slide-3)
 
Masters' whole work(big back-u_pslide)
Masters' whole work(big back-u_pslide)Masters' whole work(big back-u_pslide)
Masters' whole work(big back-u_pslide)
 
M 2 presentation(final)
M 2 presentation(final)M 2 presentation(final)
M 2 presentation(final)
 
ALP Butterfly
ALP ButterflyALP Butterfly
ALP Butterfly
 
Alp Butterfly
Alp ButterflyAlp Butterfly
Alp Butterfly
 
White Stone - KAM
White Stone - KAMWhite Stone - KAM
White Stone - KAM
 
添削ラボ 外部資料
添削ラボ 外部資料添削ラボ 外部資料
添削ラボ 外部資料
 
Presentazione Stefano Alberici, SunPower
Presentazione Stefano Alberici, SunPowerPresentazione Stefano Alberici, SunPower
Presentazione Stefano Alberici, SunPower
 

Similar to Introduction GIT (20)

Git&GitHub.pptx
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptx
 
Introduction to git & GitHub
Introduction to git & GitHubIntroduction to git & GitHub
Introduction to git & GitHub
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
git Introduction.pptx
git Introduction.pptxgit Introduction.pptx
git Introduction.pptx
 
Git basics
Git basicsGit basics
Git basics
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
Git introduction
Git introductionGit introduction
Git introduction
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Git for standalone use
Git for standalone useGit for standalone use
Git for standalone use
 
github_gyan.pptx
github_gyan.pptxgithub_gyan.pptx
github_gyan.pptx
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
Git and github
Git and githubGit and github
Git and github
 
Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
 
Version controll.pptx
Version controll.pptxVersion controll.pptx
Version controll.pptx
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Github
GithubGithub
Github
 
Git
GitGit
Git
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
Git Tutorial
Git Tutorial Git Tutorial
Git Tutorial
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

Introduction GIT

Editor's Notes

  1. Seorang pencipta kernel Linux yang menjadi cikal bakal lahirnya sistem operasi free dan open source yang bernama GNU/Linux. Dulu saat kernel Linux dibangun, Linus Torvald mengandalkan layanan version control system (VCS) yang berbayar. Dikarenakan adanya keterbatasan pada VCS yang digunakan, Linus Torvald akhirnya membuat VCS yang diciptakannya dengan nama Git. Git diawali dengan sedikit permasalahan dan kontroversi. Kernel Linux merupakan sebuah proyek perangkat lunak open source skala besar. Sepanjang perjalanan perawatan Kernel Linux (1991-2002), perubahan disimpan sebagai patch dan arsip-arsip berkas. Pada tahun 2002, proyek ini mulai menggunakan sebuah DVCS proprietary bernama BitKeeper.
  2. git adalah sebuah system versioning control (sistem kontrol versi) terdistribusi, ada istilah lain dari git ini adalah source code management software (aplikasi manajemen kode sumber)
  3. Version control adalah sebuah sistem yang mencatat setiap perubahan terhadap sebuah berkas atau kumpulan berkas sehingga pada suatu saat anda dapat kembali kepada salah satu versi dari berkas tersebut
  4. Kebanyakan orang melakukan pengontrolan versi dengan cara menyalin berkas-berkas pada direktori lain (mungkin dengan memberikan penanggalan pada direktori tersebut, jika mereka rajin). Metode seperti ini sangat umum karena sangat sederhana, namun cenderung rawan terhadap kesalahan.
  5. Permasalahan berikutnya yang dihadapi adalah para pengembang perlu melakukan kolaborasi dengan pengembang pada sistem lainnya. Untuk mengatasi permasalahan ini maka dibangunlah Centralized Version Control Systems (CVCSs). Sistem ini, diantaranya CVS, Subversion, dan Perforce, memiliki sebuah server untuk menyimpan setiap versi berkas, dan beberapa klien yang dapat melakukan checkout berkas dari server pusat. Untuk beberapa tahun, sistem seperti ini menjadi standard untuk version control
  6. Create a new repository All repository data is stored in .git folder
  7. # Insert a Remove File comment to the change list git rm mistake.cpp insert a remove command to the change list Git mv persons.cpp people.cpp
  8. sebagai jurnal yang mengingat semua perubahan commit yang telah kita lakukan