SlideShare a Scribd company logo
Git and GitHub
Presented By
Venkatesh Kondi
Basic Terminology
What you will get to know ?
Useful Commands
creating your own repository
What is Git and Github ?
Why Git ?
What is git ?
 Git is a free and open-source distributed version control system for tracking
changes in
source code
 basic goal of having version control system is to keep track of the modifications
made to the source code
 git is basically a content tracker.
What is version control System ?
 manage the files and directories
 track changes over time
 recall the previous versions
Centralized vs Distributed Version Control
System
What You can do ! Using this ?
 Record changes in your project and its files
 Revert back to previous states at different points in time
 Collaborate with multiple people on one codebase
 Develop multiple features at once
Why only Git?
 Other version control systems, do use a file-based and file modification-based
storage system. So, each revision is composed of a list of differences for each
modified file, i.e the deltas of the files.
 Whereas in Git, the whole file is stored. Each revision in Git is like file system. In
each new revision, the modified files are copied, and the files that are not modified,
are linked with the previous revision
What is GitHub?
 GitHub is an online hosting service for storing Git repositories
 GitHub lets you store your repo on their platform.
 Another awesome feature that comes with GitHub is the ability to
collaborate with other developers from any location.
 Repository — Repository is a a place where something is stored in large quantities.
You can keep folders, files, images, videos, spreadsheets and anything else your project
needs.
 Local Repo — where you keep your copy of a Git repository on your local machine( PC )
 Remote Repo — Git repository where you push changes for collaboration or backup
 Master—We usually call the main branch as master. It is the default branch. It is the main
branch of the repository
 Origin—the default name for a remote repository
 Commit—stores the changes what we made along with a log message from the user
describing the changes.
 Branch—is like another repo or different versions which is used to work on by adding different
features.
Terminolog
y
 Checkout—is a command that is used to switch between branches.
 Merge— is a command that is used to merge the changes from one branch to another
branch
 Pull— is a command that is used to pull the changes from the remote repository to the
local repository
 Push— is a command that is used to push the changes from the local repository to the
remote repository
 Status— is a command that is used to show the status of the local repository.
 Clone— is a command that is used to clone the remote repository to the local repository.
By clone, we mean that we can able to copy the whole repository locally.
 Stash— command can be helpful when we don’t want to commit the changes in the
working branch. But we want to switch the branch
Commands
There are three states ?
 Modified/Untracked Git views untracked and modified files similarly. Untracked means
that the file is new to your Git project. Modified means that the file has been seen before,
but has been changed
 Staged When a file becomes staged, it’s taken into the staging area. This is where Git is
able to take a snapshot of it
 Committed means that Git has officially taken a snapshot of the files in the staging area
 git init
 git remote add origin <remote url >
creates a connection between your local repo and the
remote repo on Github
 Staging the Changes
git add . or git add “file name”
 first commit in git?
git commit -m “commit message“
 Pushing updates
git push origin master or git push origin test-
branch
 git clone <remote url>
 git remote add origin <remote url >
Two
Ways
1.Create your own repo and push it to Github 2.Clone an existing Repo
Thank you

More Related Content

Similar to Git&GitHub.pptx

Git 101
Git 101Git 101
Git 101
jayrparro
 
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
Sunny Sharma
 
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
PRIYATHAMDARISI
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
Sourabh Sahu
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
Arashdeepkaur16
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
Eshaan35
 
Git basics
Git basicsGit basics
Git basics
GHARSALLAH Mohamed
 
Git for the absolute beginners
Git for the absolute beginnersGit for the absolute beginners
Git for the absolute beginners
Gabriele Baldassarre
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
Soumen Debgupta
 
Git 01
Git 01Git 01
Git hub_pptx
Git hub_pptxGit hub_pptx
Git hub_pptx
PathanNadhiyaSulthan
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
Ashok Kumar Satuluri
 
Git
GitGit
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
Betclic Everest Group Tech Team
 
Advanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with Git
Rasan Samarasinghe
 
Git and github
Git and githubGit and github
Git and github
Teodora Ahkozidou
 
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
HuthaifaAlmaqrami1
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
Prakash Dantuluri
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
ShehryarSH1
 

Similar to Git&GitHub.pptx (20)

Git 101
Git 101Git 101
Git 101
 
Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013Exploring Git in Visual Studio 2013
Exploring Git in Visual Studio 2013
 
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
 
Understanding GIT and Version Control
Understanding GIT and Version ControlUnderstanding GIT and Version Control
Understanding GIT and Version Control
 
Git training (basic)
Git training (basic)Git training (basic)
Git training (basic)
 
Git Session 2K23.pptx
Git Session 2K23.pptxGit Session 2K23.pptx
Git Session 2K23.pptx
 
Git basics
Git basicsGit basics
Git basics
 
Git for the absolute beginners
Git for the absolute beginnersGit for the absolute beginners
Git for the absolute beginners
 
GIT.pptx
GIT.pptxGIT.pptx
GIT.pptx
 
Git 01
Git 01Git 01
Git 01
 
Git hub_pptx
Git hub_pptxGit hub_pptx
Git hub_pptx
 
git github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptxgit github PPT_GDSCIIITK.pptx
git github PPT_GDSCIIITK.pptx
 
setting up a repository using GIT
setting up a repository using GITsetting up a repository using GIT
setting up a repository using GIT
 
Git
GitGit
Git
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Advanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with GitAdvanced Web Development in PHP - Code Versioning and Branching with Git
Advanced Web Development in PHP - Code Versioning and Branching with Git
 
Git and github
Git and githubGit and github
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
 
Learn Git Basics
Learn Git BasicsLearn Git Basics
Learn Git Basics
 
Git Mastery
Git MasteryGit Mastery
Git Mastery
 

Recently uploaded

Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 

Recently uploaded (20)

Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 

Git&GitHub.pptx

  • 1. Git and GitHub Presented By Venkatesh Kondi
  • 2. Basic Terminology What you will get to know ? Useful Commands creating your own repository What is Git and Github ? Why Git ?
  • 3. What is git ?  Git is a free and open-source distributed version control system for tracking changes in source code  basic goal of having version control system is to keep track of the modifications made to the source code  git is basically a content tracker.
  • 4. What is version control System ?  manage the files and directories  track changes over time  recall the previous versions
  • 5. Centralized vs Distributed Version Control System
  • 6. What You can do ! Using this ?  Record changes in your project and its files  Revert back to previous states at different points in time  Collaborate with multiple people on one codebase  Develop multiple features at once
  • 7. Why only Git?  Other version control systems, do use a file-based and file modification-based storage system. So, each revision is composed of a list of differences for each modified file, i.e the deltas of the files.  Whereas in Git, the whole file is stored. Each revision in Git is like file system. In each new revision, the modified files are copied, and the files that are not modified, are linked with the previous revision
  • 8.
  • 9. What is GitHub?  GitHub is an online hosting service for storing Git repositories  GitHub lets you store your repo on their platform.  Another awesome feature that comes with GitHub is the ability to collaborate with other developers from any location.
  • 10.  Repository — Repository is a a place where something is stored in large quantities. You can keep folders, files, images, videos, spreadsheets and anything else your project needs.  Local Repo — where you keep your copy of a Git repository on your local machine( PC )  Remote Repo — Git repository where you push changes for collaboration or backup  Master—We usually call the main branch as master. It is the default branch. It is the main branch of the repository  Origin—the default name for a remote repository  Commit—stores the changes what we made along with a log message from the user describing the changes.  Branch—is like another repo or different versions which is used to work on by adding different features. Terminolog y
  • 11.  Checkout—is a command that is used to switch between branches.  Merge— is a command that is used to merge the changes from one branch to another branch  Pull— is a command that is used to pull the changes from the remote repository to the local repository  Push— is a command that is used to push the changes from the local repository to the remote repository  Status— is a command that is used to show the status of the local repository.  Clone— is a command that is used to clone the remote repository to the local repository. By clone, we mean that we can able to copy the whole repository locally.  Stash— command can be helpful when we don’t want to commit the changes in the working branch. But we want to switch the branch Commands
  • 12. There are three states ?  Modified/Untracked Git views untracked and modified files similarly. Untracked means that the file is new to your Git project. Modified means that the file has been seen before, but has been changed  Staged When a file becomes staged, it’s taken into the staging area. This is where Git is able to take a snapshot of it  Committed means that Git has officially taken a snapshot of the files in the staging area
  • 13.
  • 14.  git init  git remote add origin <remote url > creates a connection between your local repo and the remote repo on Github  Staging the Changes git add . or git add “file name”  first commit in git? git commit -m “commit message“  Pushing updates git push origin master or git push origin test- branch  git clone <remote url>  git remote add origin <remote url > Two Ways 1.Create your own repo and push it to Github 2.Clone an existing Repo
  • 15.