SlideShare une entreprise Scribd logo
1  sur  20
Introduction to
Git & GitHub
Komal Sharma
DSC member
NO.
Are Git & GitHub
Same?
Git is one of the most widely used distributed VCS
or Version Control System. It is FREE and Open
Source project and was started in the year 2005 by
Linus Torvalds.
What is Git?
WHAT DOES THAT EVEN
MEAN?
Version control is a system that keep records of all
the changes done to a file or files over time and
helps us to switch back to any version.
What is VCS?
Why use GIT?
-Store revisions in a project history in just one directory
-Rewind to any revision in the project
-Work on new features without interference of main codebase
-Easily collaborate with other programmers
What is GitHub?
-Online service that hosts our projects
-Share our code with other developers
-Developers can download the projects and work on them
-They can re-upload and merge their edits to the main codebase
Terminology we use
Directory -> Folder
Terminal -> Interface for Text commands
CLI -> Command Line Interface
mkdir -> Creates a new folder
cd -> Change directory
Let’s get started...
Download GIT :
https://git-scm.com/downloads
Git Basic concepts
The Folder where your project is stored is a
repository and if it has a .git folder then its Git
Repository.
Git Repository
The commit command is used to save changes to
Local repository
Commit
Stages
Modified
Changed files
Not commited
Staging
Add any changed
files to staging
that you want to
commit
Commit
Any files in the
staging area are
added to the
commit when we
make one
Some concepts
Checkout Commit Revert Commit Reset Commit
1START 2 3 4
Basic Version Control
Terminology
git init
Branch-
A parallel copy of the main code having additional modifications.
Push-
Upload committed changes.
Pull-
Download changes from Remote.
Fork-
The repository which stores the copy of the main codebase.
Basic Git Commands
git init- to initialize git and make a .git repository
git rm[file]- deletes the file from your working directory
git status- gives you the status on your local branch
git add- adds the file to staging area
git commit- to commit the staged files
git clone- downloads repository from GitHub to your system
git push- sends local files to remote branch
git branch- lists available local branches and can create a new
branch
git merge- to merge branches together
Introduction to git & GitHub
Introduction to git & GitHub
Introduction to git & GitHub
Introduction to git & GitHub

Contenu connexe

Tendances

Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notesglen_a_smith
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab IntroductionKrunal Doshi
 
Learning git
Learning gitLearning git
Learning gitSid Anand
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Indonesia
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners HubSpot
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to GitColin Su
 
Git slides
Git slidesGit slides
Git slidesNanyak S
 

Tendances (20)

Git One Day Training Notes
Git One Day Training NotesGit One Day Training Notes
Git One Day Training Notes
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Git
GitGit
Git
 
Learning git
Learning gitLearning git
Learning git
 
Git basic
Git basicGit basic
Git basic
 
git and github
git and githubgit and github
git and github
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
 
Git real slides
Git real slidesGit real slides
Git real slides
 
GitHub Basics - Derek Bable
GitHub Basics - Derek BableGitHub Basics - Derek Bable
GitHub Basics - Derek Bable
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Git and git flow
Git and git flowGit and git flow
Git and git flow
 
Github
GithubGithub
Github
 
Git and Github Session
Git and Github SessionGit and Github Session
Git and Github Session
 
Git training v10
Git training v10Git training v10
Git training v10
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
Git slides
Git slidesGit slides
Git slides
 

Similaire à Introduction to git & GitHub

Similaire à Introduction to git & GitHub (20)

Git introduction
Git introductionGit introduction
Git introduction
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
Git&GitHub.pptx
Git&GitHub.pptxGit&GitHub.pptx
Git&GitHub.pptx
 
Introduction to git hub
Introduction to git hubIntroduction to git hub
Introduction to git hub
 
GIT_Overview.
GIT_Overview.GIT_Overview.
GIT_Overview.
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 
git.ppt.pdf
git.ppt.pdfgit.ppt.pdf
git.ppt.pdf
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
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
 
GDSC23 - Github Workshop Presentation.pptx
GDSC23 - Github Workshop Presentation.pptxGDSC23 - Github Workshop Presentation.pptx
GDSC23 - Github Workshop Presentation.pptx
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
 
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
 
Git & Github
Git & GithubGit & Github
Git & Github
 
Git 101
Git 101Git 101
Git 101
 
Git and github
Git and githubGit and github
Git and github
 
Git and Github
Git and GithubGit and Github
Git and Github
 
Git overview
Git overviewGit overview
Git overview
 
Git basics for beginners
Git basics for beginnersGit basics for beginners
Git basics for beginners
 

Dernier

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 

Dernier (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

Introduction to git & GitHub

  • 1. Introduction to Git & GitHub Komal Sharma DSC member
  • 2. NO. Are Git & GitHub Same?
  • 3. Git is one of the most widely used distributed VCS or Version Control System. It is FREE and Open Source project and was started in the year 2005 by Linus Torvalds. What is Git?
  • 4. WHAT DOES THAT EVEN MEAN?
  • 5. Version control is a system that keep records of all the changes done to a file or files over time and helps us to switch back to any version. What is VCS?
  • 6. Why use GIT? -Store revisions in a project history in just one directory -Rewind to any revision in the project -Work on new features without interference of main codebase -Easily collaborate with other programmers
  • 7. What is GitHub? -Online service that hosts our projects -Share our code with other developers -Developers can download the projects and work on them -They can re-upload and merge their edits to the main codebase
  • 8. Terminology we use Directory -> Folder Terminal -> Interface for Text commands CLI -> Command Line Interface mkdir -> Creates a new folder cd -> Change directory
  • 9. Let’s get started... Download GIT : https://git-scm.com/downloads
  • 11. The Folder where your project is stored is a repository and if it has a .git folder then its Git Repository. Git Repository
  • 12. The commit command is used to save changes to Local repository Commit
  • 13. Stages Modified Changed files Not commited Staging Add any changed files to staging that you want to commit Commit Any files in the staging area are added to the commit when we make one
  • 14. Some concepts Checkout Commit Revert Commit Reset Commit 1START 2 3 4
  • 15. Basic Version Control Terminology git init Branch- A parallel copy of the main code having additional modifications. Push- Upload committed changes. Pull- Download changes from Remote. Fork- The repository which stores the copy of the main codebase.
  • 16. Basic Git Commands git init- to initialize git and make a .git repository git rm[file]- deletes the file from your working directory git status- gives you the status on your local branch git add- adds the file to staging area git commit- to commit the staged files git clone- downloads repository from GitHub to your system git push- sends local files to remote branch git branch- lists available local branches and can create a new branch git merge- to merge branches together

Notes de l'éditeur

  1. The first question that comes to our mind...
  2. If you google, the result will be something like this...
  3. If you are anything like me, that probably went over you head
  4. Let’s break it down now… (Video game- safe points example)
  5. Ever happened that you saved multiple “finals”
  6. Installing Git