SlideShare a Scribd company logo
Learning Git and GitHub
GDSC -Bharat Institute of Technology, Meerut
Before knowing about Git & GitHub we need to
know about an important concept called "VERSION
CONTROL SYSTEM (VCS)"
What is VCS?
● Version Control System is also known as Source
Software Code Management (SCM) System.
● They are a category of software tools that helps in
recording changes made to files by keeping a track of
modifications done to the code.
Benefits of VCS
● We can maintain different versions and we can choose
any version based on requirement.
● With every version/commit we can maintain metadata
like
○ commit message
○ who did changes
○ when he did the change
○ what changes he did
Benefits of VCS (cont..)
● Developers can share the code to the peer developers
in very easy way.
● Multiple developers can work in collaborative way.
● Parallel development.
● We can provide access control like
○ who can read code
○ who can modify code
Type of VCS
There are two VCS:
1. Centralized VCS
2. Distributed VCS
What is Git?
Git is a free and open source distributed version control
system designed to handle everything from small to very
large projects with speed and efficiency.
Git is developed by Linus Torvalds (Finnish software
engineer), who also developed Linux Kernel.
Most of the companies like Microsoft, Facebook, Yahoo,
LinkedIn, Intel using Git as Version Control System Tool.
Configuring Git
● First, if you are Windows user then download Git Bash
from https://git-scm.com/downloads. Linux and MacOS
comes with Git by default.
● Configure the username and email:
○ git config --global user.name "USERNAME"
○ git config --global user.email "EMAIL ADDRESS"
● Check configuration:
○ git config -l
Git architecture
What is GitHub?
GitHub is a code hosting platform for version control and
collaboration.
It lets you and others work together on projects from anywhere.
GitHub is a Git repository hosting service, but it adds many of its
own features. While Git is a command line tool, GitHub provides
a Web-based graphical interface.
It also provides access control and several collaboration
features, such as a wikis and basic task management tools for
every project.
Let’s start
● Create account from https://github.com/signup
● Create a repository on GitHub
● Create a personal token from settings -> Developer settings ->
Personal access tokens (https://github.com/settings/tokens)
Download the repo
To download the repo in your local system, you have to clone
the repo.
$ git clone https://github.com/USERNAME/REPO.git
Creating changes
Make changes in the files
$ git add FILENAME
$ git status
$ git commit -m “COMMIT MESSAGE”
Uploading change to repo
To upload the changes on the remote repository
$ git push -u main
Or
$ git push
Other Git commands
● git init - Create an empty Git repository or reinitialize an existing
one
● git diff - Show changes between commits, commit and working
tree, etc
● git log - Show commit log
● git status - Show status of working tree
● git pull - Fetch from and integrate with another repository or a local
branch
Thank You!

More Related Content

What's hot (20)

PPTX
Git n git hub
Jiwon Baek
 
PDF
Gitlab ci, cncf.sk
Juraj Hantak
 
PDF
Gitlab ci-cd
Dan MAGIER
 
PPTX
Git Lab Introduction
Krunal Doshi
 
PPTX
Git and Github Session
GoogleDevelopersStud1
 
PDF
What's New for GitLab CI/CD February 2020
Noa Harel
 
PDF
Git for beginners
Arulmurugan Rajaraman
 
PPT
Git basic
Emran Ul Hadi
 
ODP
Introduction to Version Control
Jeremy Coates
 
PDF
Git 101: Git and GitHub for Beginners
HubSpot
 
PDF
Git best practices workshop
Otto Kekäläinen
 
PDF
Git training v10
Skander Hamza
 
PDF
Advanced Git Tutorial
Sage Sharp
 
PPTX
Introduction to Gitlab | Gitlab 101 | Training Session
Anwarul Islam
 
PDF
Introducing GitLab (September 2018)
Noa Harel
 
PPTX
GitLab.pptx
LeoulZewelde1
 
PDF
Git and Github slides.pdf
Tilton2
 
PPTX
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
PDF
Intro to Git and GitHub
Panagiotis Papadopoulos
 
Git n git hub
Jiwon Baek
 
Gitlab ci, cncf.sk
Juraj Hantak
 
Gitlab ci-cd
Dan MAGIER
 
Git Lab Introduction
Krunal Doshi
 
Git and Github Session
GoogleDevelopersStud1
 
What's New for GitLab CI/CD February 2020
Noa Harel
 
Git for beginners
Arulmurugan Rajaraman
 
Git basic
Emran Ul Hadi
 
Introduction to Version Control
Jeremy Coates
 
Git 101: Git and GitHub for Beginners
HubSpot
 
Git best practices workshop
Otto Kekäläinen
 
Git training v10
Skander Hamza
 
Advanced Git Tutorial
Sage Sharp
 
Introduction to Gitlab | Gitlab 101 | Training Session
Anwarul Islam
 
Introducing GitLab (September 2018)
Noa Harel
 
GitLab.pptx
LeoulZewelde1
 
Git and Github slides.pdf
Tilton2
 
GitHub Basics - Derek Bable
"FENG "GEORGE"" YU
 
Intro to Git and GitHub
Panagiotis Papadopoulos
 

Similar to Learning Git and GitHub - BIT GDSC.pdf (20)

PPTX
Introductio to Git and GitHub Session 2 by gdg on campus kab
makobisimon
 
PPTX
GitHub_For_Beginners_Presentationss.pptx
ramyagirish78
 
PPTX
Introduction to git and Github
Wycliff1
 
PDF
DevOps Expt 2.pdf
SomnathMule5
 
PPTX
Git and GitHub.pptx
kelashraisal052
 
PPTX
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
PPTX
Git and Github.pptx
aymanessam16
 
PPTX
Git,Github,How to host using Github
Sujata Regoti
 
PDF
GDSC ZHCET GitHub Session.pdf
gdsczhcet
 
PPTX
Workshop on Git, GitHub & Web Hosting
GDSCNKOCET
 
PDF
Introduction-to-Git-Github-andWorshop.pdf
SwasKare
 
PDF
Git Mastery
ShehryarSH1
 
PDF
Git and GitHub Info Session
SawanBhattacharya
 
PPTX
Hello git - a soft introduction to git (Talk Slides)
Amity University Noida
 
PPTX
Git and GitHub PowerPoint Presentation**
KalpeshGandha
 
PPTX
git&github.pptx for all computer science
WARRIORFF1
 
PPTX
Introduction to git hub
Naveen Pandey
 
PDF
Github and Git What the fuck is this shit .pdf
krishna50blogging
 
PPTX
Beginner's guide to git and github
SahilSonar4
 
PPTX
A crash course on git as version control system and GitHub
Jerome Mberia
 
Introductio to Git and GitHub Session 2 by gdg on campus kab
makobisimon
 
GitHub_For_Beginners_Presentationss.pptx
ramyagirish78
 
Introduction to git and Github
Wycliff1
 
DevOps Expt 2.pdf
SomnathMule5
 
Git and GitHub.pptx
kelashraisal052
 
git github PPT_GDSCIIITK.pptx
AbelPhilipJoseph
 
Git and Github.pptx
aymanessam16
 
Git,Github,How to host using Github
Sujata Regoti
 
GDSC ZHCET GitHub Session.pdf
gdsczhcet
 
Workshop on Git, GitHub & Web Hosting
GDSCNKOCET
 
Introduction-to-Git-Github-andWorshop.pdf
SwasKare
 
Git Mastery
ShehryarSH1
 
Git and GitHub Info Session
SawanBhattacharya
 
Hello git - a soft introduction to git (Talk Slides)
Amity University Noida
 
Git and GitHub PowerPoint Presentation**
KalpeshGandha
 
git&github.pptx for all computer science
WARRIORFF1
 
Introduction to git hub
Naveen Pandey
 
Github and Git What the fuck is this shit .pdf
krishna50blogging
 
Beginner's guide to git and github
SahilSonar4
 
A crash course on git as version control system and GitHub
Jerome Mberia
 
Ad

Recently uploaded (20)

PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PDF
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Hashing Introduction , hash functions and techniques
sailajam21
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
GTU Civil Engineering All Semester Syllabus.pdf
Vimal Bhojani
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Ad

Learning Git and GitHub - BIT GDSC.pdf

  • 1. Learning Git and GitHub GDSC -Bharat Institute of Technology, Meerut
  • 2. Before knowing about Git & GitHub we need to know about an important concept called "VERSION CONTROL SYSTEM (VCS)"
  • 3. What is VCS? ● Version Control System is also known as Source Software Code Management (SCM) System. ● They are a category of software tools that helps in recording changes made to files by keeping a track of modifications done to the code.
  • 4. Benefits of VCS ● We can maintain different versions and we can choose any version based on requirement. ● With every version/commit we can maintain metadata like ○ commit message ○ who did changes ○ when he did the change ○ what changes he did
  • 5. Benefits of VCS (cont..) ● Developers can share the code to the peer developers in very easy way. ● Multiple developers can work in collaborative way. ● Parallel development. ● We can provide access control like ○ who can read code ○ who can modify code
  • 6. Type of VCS There are two VCS: 1. Centralized VCS 2. Distributed VCS
  • 7. What is Git? Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is developed by Linus Torvalds (Finnish software engineer), who also developed Linux Kernel. Most of the companies like Microsoft, Facebook, Yahoo, LinkedIn, Intel using Git as Version Control System Tool.
  • 8. Configuring Git ● First, if you are Windows user then download Git Bash from https://git-scm.com/downloads. Linux and MacOS comes with Git by default. ● Configure the username and email: ○ git config --global user.name "USERNAME" ○ git config --global user.email "EMAIL ADDRESS" ● Check configuration: ○ git config -l
  • 10. What is GitHub? GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command line tool, GitHub provides a Web-based graphical interface. It also provides access control and several collaboration features, such as a wikis and basic task management tools for every project.
  • 11. Let’s start ● Create account from https://github.com/signup ● Create a repository on GitHub ● Create a personal token from settings -> Developer settings -> Personal access tokens (https://github.com/settings/tokens)
  • 12. Download the repo To download the repo in your local system, you have to clone the repo. $ git clone https://github.com/USERNAME/REPO.git
  • 13. Creating changes Make changes in the files $ git add FILENAME $ git status $ git commit -m “COMMIT MESSAGE”
  • 14. Uploading change to repo To upload the changes on the remote repository $ git push -u main Or $ git push
  • 15. Other Git commands ● git init - Create an empty Git repository or reinitialize an existing one ● git diff - Show changes between commits, commit and working tree, etc ● git log - Show commit log ● git status - Show status of working tree ● git pull - Fetch from and integrate with another repository or a local branch