SlideShare a Scribd company logo
7
Most read
10
Most read
Presentation By:
Gandha Kalpesh
Git and GitHub
Today’s Topic
SITUATIONS BEFORE GIT
• Repetitive sharing of the file between members !
• 1 Person works on file and rest are Idle.
• No tracking of changes .
• No rollback.
• Configuration issues.
• What is the Solutions?
Git and GitHub
GIT AND GITHUB
Git is a distributed version control system for tracking changes in source
code during software development. It is designed for coordinating work
among programmers, but it can be used to track changes in any set of files.
Its goals include speed, data integrity, and support for distributed, non-
linear workflows.
GitHub is a web-based Git repository hosting service, which offers all of the
distributed revision control and source code management (SCM)
functionality of Git as well as adding its own features.
Git Hub
Git
Local
System
Git
From Where To Start?
1. Git Hub account set up.
2. Git Installation on computer
3. Adding Git to code Editors
4. Using Git Commands
I. Pull
II. Push
GIT INSTALLATION AND CONFIGURATION
• Download Git from https://git-scm.com
• Configuring Git
 git config –global username “username on github”
 git config –global user.email “email used on github”
 git config –list
• Open code editor and run Git commands.
Git
WORKING OF GIT AND GITHUB
Local System Remote System
Clone Repository to Local System
Stage
Add Changes Commit Changes
Push local content to Remote System
Pull Repository Changes to Local System
Git Hub
GIT COMMANDS
1. Git add: Adds the specified file(s) or directory to the staging area.
Syntax: git add <file/directory>
Example: git add index.html
2. Git branch: Creates a new branch or lists all branches.
Syntax: git branch <branch-name>
Example: git branch feature-branch
3. Git commit: Saves changes to the repository with a descriptive message.
Syntax: git commit -m "<commit-message>"
Example: git commit -m "Added navigation bar“
4. Git init: Initializes a new Git repository in the current directory.
Syntax: git init
Example: git init
Git Commands
GIT COMMANDS
5. Git checkout: Switches to the specified branch or restores a file.
Syntax: git checkout <branch-name>
Example: git checkout feature-branch
6. Git clone: Creates a local copy of the specified remote repository.
Syntax: git clone <repository-URL>
Example: git clone https://github.com/user/repo.git
7. Git config: Configures user settings like email or username for Git.
Syntax: git config <key> <value>
Example: git config user.name "Your Name"
8. Git merge: Initializes a new Git repository in the current directory.
Syntax: git merge <branch-name>
Example: git merge feature-branch
Git Commands
GIT COMMANDS
9. Git push: Uploads local repository changes to the specified remote branch.
Syntax: git push <remote> <branch>
Example: git push origin main
10. Git pull: used to fetch and integrate changes from a remote repository
into the current branch of your local repository.
Syntax: git pull <remote> <branch>
Example: git pull origin main
Git Commands
THANKYOU

More Related Content

Similar to Git and GitHub PowerPoint Presentation** (20)

PPTX
Version control git day02
Gourav Varma
 
PPT
Git introduction
satyendrajaladi
 
PPTX
Git 101
jayrparro
 
PPTX
Version control git day03
Gourav Varma
 
PPTX
Introduction to git hub
Naveen Pandey
 
PPT
Github By Nyros Developer
Nyros Technologies
 
PPTX
Introduction to git and githhub with practicals.pptx
Abdul Salam
 
PPTX
Hacktoberfest intro to Git and GitHub
DSC GVP
 
PPTX
Version Control System-git status,git add,git commit,git log.pptx
ChayapathiAR
 
PPT
Git is a distributed version control system .
HELLOWorld889594
 
PDF
GIT_training_SoftServeBulgaria2016
Peter Denev
 
PDF
Git Commands Every Developer Should Know?
9 series
 
PDF
Git Commands for Test Automation: Best Practices & Techniques
digitaljignect
 
PPTX
tech winter break workshop on git &git hub.pptx
ashishraulin
 
PPTX
Introduction git
Dian Sigit Prastowo
 
PPTX
14 oct Git & GitHub.pptx
GDSCGHRIETNagpur
 
PDF
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
PPTX
Mastering Git: Version Control for Developers
AyeshaSharif19
 
PPTX
Version controll.pptx
Md. Main Uddin Rony
 
PPTX
Introduction to git & GitHub
Poornachandrakashi
 
Version control git day02
Gourav Varma
 
Git introduction
satyendrajaladi
 
Git 101
jayrparro
 
Version control git day03
Gourav Varma
 
Introduction to git hub
Naveen Pandey
 
Github By Nyros Developer
Nyros Technologies
 
Introduction to git and githhub with practicals.pptx
Abdul Salam
 
Hacktoberfest intro to Git and GitHub
DSC GVP
 
Version Control System-git status,git add,git commit,git log.pptx
ChayapathiAR
 
Git is a distributed version control system .
HELLOWorld889594
 
GIT_training_SoftServeBulgaria2016
Peter Denev
 
Git Commands Every Developer Should Know?
9 series
 
Git Commands for Test Automation: Best Practices & Techniques
digitaljignect
 
tech winter break workshop on git &git hub.pptx
ashishraulin
 
Introduction git
Dian Sigit Prastowo
 
14 oct Git & GitHub.pptx
GDSCGHRIETNagpur
 
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
Mastering Git: Version Control for Developers
AyeshaSharif19
 
Version controll.pptx
Md. Main Uddin Rony
 
Introduction to git & GitHub
Poornachandrakashi
 

Recently uploaded (20)

PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Dimensions of Societal Planning in Commonism
StefanMz
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Ad

Git and GitHub PowerPoint Presentation**

  • 1. Presentation By: Gandha Kalpesh Git and GitHub Today’s Topic
  • 2. SITUATIONS BEFORE GIT • Repetitive sharing of the file between members ! • 1 Person works on file and rest are Idle. • No tracking of changes . • No rollback. • Configuration issues. • What is the Solutions? Git and GitHub
  • 3. GIT AND GITHUB Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non- linear workflows. GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.
  • 4. Git Hub Git Local System Git From Where To Start? 1. Git Hub account set up. 2. Git Installation on computer 3. Adding Git to code Editors 4. Using Git Commands I. Pull II. Push
  • 5. GIT INSTALLATION AND CONFIGURATION • Download Git from https://git-scm.com • Configuring Git  git config –global username “username on github”  git config –global user.email “email used on github”  git config –list • Open code editor and run Git commands. Git
  • 6. WORKING OF GIT AND GITHUB Local System Remote System Clone Repository to Local System Stage Add Changes Commit Changes Push local content to Remote System Pull Repository Changes to Local System Git Hub
  • 7. GIT COMMANDS 1. Git add: Adds the specified file(s) or directory to the staging area. Syntax: git add <file/directory> Example: git add index.html 2. Git branch: Creates a new branch or lists all branches. Syntax: git branch <branch-name> Example: git branch feature-branch 3. Git commit: Saves changes to the repository with a descriptive message. Syntax: git commit -m "<commit-message>" Example: git commit -m "Added navigation bar“ 4. Git init: Initializes a new Git repository in the current directory. Syntax: git init Example: git init Git Commands
  • 8. GIT COMMANDS 5. Git checkout: Switches to the specified branch or restores a file. Syntax: git checkout <branch-name> Example: git checkout feature-branch 6. Git clone: Creates a local copy of the specified remote repository. Syntax: git clone <repository-URL> Example: git clone https://github.com/user/repo.git 7. Git config: Configures user settings like email or username for Git. Syntax: git config <key> <value> Example: git config user.name "Your Name" 8. Git merge: Initializes a new Git repository in the current directory. Syntax: git merge <branch-name> Example: git merge feature-branch Git Commands
  • 9. GIT COMMANDS 9. Git push: Uploads local repository changes to the specified remote branch. Syntax: git push <remote> <branch> Example: git push origin main 10. Git pull: used to fetch and integrate changes from a remote repository into the current branch of your local repository. Syntax: git pull <remote> <branch> Example: git pull origin main Git Commands