SlideShare a Scribd company logo
1 of 12
Git
Introduction to Version control
What is version control
Version control is a system that records changes to a file or set of files over
time so that you can recall specific versions later.
Or in simple terms
Version Control is simply keeping track of changes made to files.
What is Git
Git is a Open Source software program which is a Distributed Version Control
System and was created in 2005 by Linus Torvalds the creator the Linux
Operating System Kernel.
In other words Git helps you keep track of changes made to files and was
created by a very clever programmer.
Working Directory
The working directory is the place where you edit and make changes to your
files.
This would typically be a directory on your machine.
Staging area
The staging area is basically a loading dock where you get to determine what
changes get shipped away.
In other words you can tell git which files you made changes to.
Repository
A git repository is a central location in which data is stored and managed.
In other words the Git repository stores all your files and changes to those
files.
Create a empty git repository
git init
This command creates an empty Git repository
Check the status of your repository
git status
The git status command displays the state of the working directory.
It will show you the files being tracked by Git and whether those files has been
staged.
Add files to your git repository
The git add command adds a change in the working directory to the staging
area.
Before you can track any changes to your files you need to tell Git to add the
file to your repository and tell git which changes you want to track.
Commit your changes
The word commit means to make something permanent.
With Git it means taking a snapshot of the current version of your files.
It is always a good idea to add a commit message so you can later identify
your changes.
Ask me about the electronics example.
View your log
git log
To view all your commits you can use the git log command.
That’s it!
For now!

More Related Content

What's hot (20)

Git Demo
Git DemoGit Demo
Git Demo
 
git Versioning
git Versioninggit Versioning
git Versioning
 
Git n git hub
Git n git hubGit n git hub
Git n git hub
 
Git slide
Git slideGit slide
Git slide
 
Version control system and Git
Version control system and GitVersion control system and Git
Version control system and Git
 
Git: a tool for wizards
Git: a tool for wizardsGit: a tool for wizards
Git: a tool for wizards
 
Git the fast version control system
Git the fast version control systemGit the fast version control system
Git the fast version control system
 
Git commands
Git commandsGit commands
Git commands
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Git undo
Git undoGit undo
Git undo
 
Git commands
Git commandsGit commands
Git commands
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
Git - The Incomplete Introduction
Git - The Incomplete IntroductionGit - The Incomplete Introduction
Git - The Incomplete Introduction
 
Intro to git
Intro to gitIntro to git
Intro to git
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git slides
Git slidesGit slides
Git slides
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
 
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
 
Getting started With GIT
Getting started With GITGetting started With GIT
Getting started With GIT
 
Git Primer
Git PrimerGit Primer
Git Primer
 

Viewers also liked

Ajuda memória hosana
Ajuda memória   hosanaAjuda memória   hosana
Ajuda memória hosanaPelizari
 
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...Mikael Bramstedt
 
Nuevas tecnologías de la información y la
Nuevas tecnologías de la información y laNuevas tecnologías de la información y la
Nuevas tecnologías de la información y ladaniellaguz
 
DeclaracaoHistorico_1463604932489 - Contábeis
DeclaracaoHistorico_1463604932489 - ContábeisDeclaracaoHistorico_1463604932489 - Contábeis
DeclaracaoHistorico_1463604932489 - Contábeisalexaugustoalves
 
Renacimiento luisa, maria eugenia,yessica,maritza,emanuel
Renacimiento luisa, maria eugenia,yessica,maritza,emanuelRenacimiento luisa, maria eugenia,yessica,maritza,emanuel
Renacimiento luisa, maria eugenia,yessica,maritza,emanuelEmanuel Zapata
 
Registro de estrangeiros no Brasil
Registro de estrangeiros no BrasilRegistro de estrangeiros no Brasil
Registro de estrangeiros no BrasilLaerte J Silva
 
Candidatura a jornadas_de_caça_zcm
Candidatura a jornadas_de_caça_zcmCandidatura a jornadas_de_caça_zcm
Candidatura a jornadas_de_caça_zcmdingobil
 
Notas definitivas 2º período 10 03
Notas definitivas 2º período   10 03Notas definitivas 2º período   10 03
Notas definitivas 2º período 10 03gloriainesmaipore
 
Cordero destellos
Cordero destellosCordero destellos
Cordero destellosEduardo
 
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016Elena Breslav
 
Kopi Delft 13 Jan 2017
Kopi Delft 13 Jan 2017Kopi Delft 13 Jan 2017
Kopi Delft 13 Jan 2017Agung Wahyudi
 

Viewers also liked (18)

CV_Mauricio_Domingues_2016_2.0
CV_Mauricio_Domingues_2016_2.0CV_Mauricio_Domingues_2016_2.0
CV_Mauricio_Domingues_2016_2.0
 
P14 portfolio
P14 portfolioP14 portfolio
P14 portfolio
 
Ajuda memória hosana
Ajuda memória   hosanaAjuda memória   hosana
Ajuda memória hosana
 
Notas 2º período 10 04
Notas 2º período 10 04Notas 2º período 10 04
Notas 2º período 10 04
 
Garage Roof Scotland
Garage Roof ScotlandGarage Roof Scotland
Garage Roof Scotland
 
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...
Mikael Bramstedt IBM and Multi Platform IT Architect_PM_PL_Infrastructure_Sys...
 
Nuevas tecnologías de la información y la
Nuevas tecnologías de la información y laNuevas tecnologías de la información y la
Nuevas tecnologías de la información y la
 
O Basico don failla
O Basico   don faillaO Basico   don failla
O Basico don failla
 
DeclaracaoHistorico_1463604932489 - Contábeis
DeclaracaoHistorico_1463604932489 - ContábeisDeclaracaoHistorico_1463604932489 - Contábeis
DeclaracaoHistorico_1463604932489 - Contábeis
 
Renacimiento luisa, maria eugenia,yessica,maritza,emanuel
Renacimiento luisa, maria eugenia,yessica,maritza,emanuelRenacimiento luisa, maria eugenia,yessica,maritza,emanuel
Renacimiento luisa, maria eugenia,yessica,maritza,emanuel
 
Registro de estrangeiros no Brasil
Registro de estrangeiros no BrasilRegistro de estrangeiros no Brasil
Registro de estrangeiros no Brasil
 
Hqclaudissea
HqclaudisseaHqclaudissea
Hqclaudissea
 
Candidatura a jornadas_de_caça_zcm
Candidatura a jornadas_de_caça_zcmCandidatura a jornadas_de_caça_zcm
Candidatura a jornadas_de_caça_zcm
 
Notas definitivas 2º período 10 03
Notas definitivas 2º período   10 03Notas definitivas 2º período   10 03
Notas definitivas 2º período 10 03
 
Cordero destellos
Cordero destellosCordero destellos
Cordero destellos
 
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016
Орг-я процесса апробации программ по новым ФГОС МПУ 19_09_2016
 
Kopi Delft 13 Jan 2017
Kopi Delft 13 Jan 2017Kopi Delft 13 Jan 2017
Kopi Delft 13 Jan 2017
 
Subject pronouns
Subject pronounsSubject pronouns
Subject pronouns
 

Similar to Git 01

Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticlePRIYATHAMDARISI
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptxtnscharishma
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptxEshaan35
 
SessionThree_IntroductionToVersionControlSystems
SessionThree_IntroductionToVersionControlSystemsSessionThree_IntroductionToVersionControlSystems
SessionThree_IntroductionToVersionControlSystemsHellen Gakuruh
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Simplilearn
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with GitSahil Agarwal
 

Similar to Git 01 (20)

Git&GitHub.pptx
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptx
 
Introduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech ArticleIntroduction to GitHub, Open Source and Tech Article
Introduction to GitHub, Open Source and Tech Article
 
git and github-1.pptx
git and github-1.pptxgit and github-1.pptx
git and github-1.pptx
 
Git introduction
Git introductionGit introduction
Git introduction
 
git Introduction.pptx
git Introduction.pptxgit Introduction.pptx
git Introduction.pptx
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Learning git
Learning gitLearning git
Learning git
 
Introduction to Git.pptx
Introduction to Git.pptxIntroduction to Git.pptx
Introduction to Git.pptx
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
github_gyan.pptx
github_gyan.pptxgithub_gyan.pptx
github_gyan.pptx
 
Overview of git
Overview of gitOverview of git
Overview of git
 
Overview of git
Overview of gitOverview of git
Overview of git
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
Git for the absolute beginners
Git for the absolute beginnersGit for the absolute beginners
Git for the absolute beginners
 
SessionThree_IntroductionToVersionControlSystems
SessionThree_IntroductionToVersionControlSystemsSessionThree_IntroductionToVersionControlSystems
SessionThree_IntroductionToVersionControlSystems
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
 
1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx1-Intro to VC & GIT PDF.pptx
1-Intro to VC & GIT PDF.pptx
 
Do you git it
Do you git it Do you git it
Do you git it
 
git KT .pptx
git KT .pptxgit KT .pptx
git KT .pptx
 
Version Control with Git
Version Control with GitVersion Control with Git
Version Control with Git
 

Recently uploaded

Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noidabntitsolutionsrishis
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 

Recently uploaded (20)

Buds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in NoidaBuds n Tech IT Solutions: Top-Notch Web Services in Noida
Buds n Tech IT Solutions: Top-Notch Web Services in Noida
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 

Git 01

  • 2. What is version control Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. Or in simple terms Version Control is simply keeping track of changes made to files.
  • 3. What is Git Git is a Open Source software program which is a Distributed Version Control System and was created in 2005 by Linus Torvalds the creator the Linux Operating System Kernel. In other words Git helps you keep track of changes made to files and was created by a very clever programmer.
  • 4. Working Directory The working directory is the place where you edit and make changes to your files. This would typically be a directory on your machine.
  • 5. Staging area The staging area is basically a loading dock where you get to determine what changes get shipped away. In other words you can tell git which files you made changes to.
  • 6. Repository A git repository is a central location in which data is stored and managed. In other words the Git repository stores all your files and changes to those files.
  • 7. Create a empty git repository git init This command creates an empty Git repository
  • 8. Check the status of your repository git status The git status command displays the state of the working directory. It will show you the files being tracked by Git and whether those files has been staged.
  • 9. Add files to your git repository The git add command adds a change in the working directory to the staging area. Before you can track any changes to your files you need to tell Git to add the file to your repository and tell git which changes you want to track.
  • 10. Commit your changes The word commit means to make something permanent. With Git it means taking a snapshot of the current version of your files. It is always a good idea to add a commit message so you can later identify your changes. Ask me about the electronics example.
  • 11. View your log git log To view all your commits you can use the git log command.