SlideShare a Scribd company logo
1 of 16
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

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

Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
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
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
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
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
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
 
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
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxnada99848
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
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
 

Recently uploaded (20)

Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
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
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
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
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
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...
 
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
 
software engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptxsoftware engineering Chapter 5 System modeling.pptx
software engineering Chapter 5 System modeling.pptx
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
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
 

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.