SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
Sumin Byeon
 
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
 

Mais procurados (20)

Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Github basics
Github basicsGithub basics
Github basics
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
 
Intro to git and git hub
Intro to git and git hubIntro to git and git hub
Intro to git and git hub
 
Starting with Git & GitHub
Starting with Git & GitHubStarting with Git & GitHub
Starting with Git & GitHub
 
Git with bitbucket
Git with bitbucketGit with bitbucket
Git with bitbucket
 
Git basics
Git basicsGit basics
Git basics
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
 
Learning git
Learning gitLearning git
Learning git
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 
Introduction git
Introduction gitIntroduction git
Introduction git
 
BitBucket presentation
BitBucket presentationBitBucket presentation
BitBucket presentation
 
Git basic
Git basicGit basic
Git basic
 
Git Lab Introduction
Git Lab IntroductionGit Lab Introduction
Git Lab Introduction
 
Git - Basic Crash Course
Git - Basic Crash CourseGit - Basic Crash Course
Git - Basic Crash Course
 
Git branching strategies
Git branching strategiesGit branching strategies
Git branching strategies
 
GIT In Detail
GIT In DetailGIT In Detail
GIT In Detail
 
Git and GitHub
Git and GitHubGit and GitHub
Git and GitHub
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
 
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 ...
 

Semelhante a Introduction to git & GitHub

Git_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_GuidewireGit_and_GitHub Integration_with_Guidewire
Git_and_GitHub Integration_with_Guidewire
Gandhi Ramu
 

Semelhante a 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
 
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.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
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 

Último (20)

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Ữ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
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.
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
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...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
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.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

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

Notas do Editor

  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