SlideShare a Scribd company logo
GIT
ARE THEY EQUAL?
INSTALLATION:
 For Windows :
https://git-scm.com/download/win
 For Debian / Ubuntu :
$ apt-get install git
 For macOS :
https://git-scm.com/download/mac
CONFIGURING YOUR GIT:
 The first thing you should do when you install Git
is to set your user name and email address. This is
important because every Git commit uses this
information: To do this type the command :
$ git config --global user.name "John Doe"
$ git config --global user.email
“johndoe@example.com”
INITIALIZING REPOSITORY
• Command: $ git init
To check status of repo
• Command: $ git status
ADDING FILES TO A REPO :
 For single file
Command : $ git add filename
 For adding all files
Command: $ git add .
COMMIT AND LOG :
TO COMMIT A SINGLE FILE :
 Command: $ git commit filename –m ‘ description about
commit ‘
TO COMMIT ALL FILES:
 Command: $ git commit –am ‘ description about commit ‘
To see log
Command: $ git log
CHECKOUT:
 Command : $ git checkout commit hash
 For instant commit
 Command: $ git checkout .
branch
 To list the branch list
 Command : $ git branch
 To create btanch
 Command : $ git branch branch_name
 To switch branch
 Command : $ git checkout branch_name
STASH:
 To create stash
 Command : $ git stash save changes
 To list stash
 Command : $ git stash list
 To apply stash
 $ git stash apply_id
 For recent stash
 $ git stash pop
 To clear stash
 $ git stash clear
 To delete a particular stash
 $ git stash drop id
 CLONE
 $ git clone from to
 BARE
 $ git init ––bare
 Push
 $ git push destination
 Pull
 $ git pull destination

More Related Content

PDF
Git slides
PDF
Git and git flow
PDF
Advanced Git
PPTX
Introduction to kubernetes
PDF
Git training v10
PPTX
PPTX
Git - Basic Crash Course
Git slides
Git and git flow
Advanced Git
Introduction to kubernetes
Git training v10
Git - Basic Crash Course

What's hot (20)

PPTX
PDF
Introduction to GitHub Actions
PDF
DevOps with GitHub Actions
PPTX
Git 101 for Beginners
PPTX
GitHub Presentation
PDF
github-actions.pdf
PPTX
Git n git hub
PDF
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
PPTX
Introduction git
PPTX
Git Lab Introduction
PPTX
Git and GitHub
PPTX
Getting started with Jenkins
PDF
Learning Git and GitHub - BIT GDSC.pdf
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
PDF
Introducing GitLab (June 2018)
PPTX
Git One Day Training Notes
PDF
PDF
Introduction to Git
PDF
GitOps with ArgoCD
PDF
Introduction to GitHub Actions
Introduction to GitHub Actions
DevOps with GitHub Actions
Git 101 for Beginners
GitHub Presentation
github-actions.pdf
Git n git hub
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
Introduction git
Git Lab Introduction
Git and GitHub
Getting started with Jenkins
Learning Git and GitHub - BIT GDSC.pdf
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Introducing GitLab (June 2018)
Git One Day Training Notes
Introduction to Git
GitOps with ArgoCD
Introduction to GitHub Actions
Ad

Similar to Git (20)

PPTX
Getting Git...before it gets you
PPTX
Introduction to Git and Github
PPTX
Bitbucket as a code server and pmt
PPT
Git installation and configuration
PPTX
Using Git and BitBucket
PPTX
Lets Git Together
PPTX
1-Intro to VC & GIT PDF.pptx
PDF
You're doing it wrong! Git it right!
PDF
Github git-cheat-sheet
PPTX
SCM (Source Control Management) - Git Basic
PPTX
git.ppt.pptx power point presentation got Google internet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PDF
Github git-cheat-sheet
PPTX
GIT & Github introduction for beginners
PDF
Git 入门 与 实践
PPT
Introduction to Git
PDF
Git hub
Getting Git...before it gets you
Introduction to Git and Github
Bitbucket as a code server and pmt
Git installation and configuration
Using Git and BitBucket
Lets Git Together
1-Intro to VC & GIT PDF.pptx
You're doing it wrong! Git it right!
Github git-cheat-sheet
SCM (Source Control Management) - Git Basic
git.ppt.pptx power point presentation got Google internet
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
Github git-cheat-sheet
GIT & Github introduction for beginners
Git 入门 与 实践
Introduction to Git
Git hub
Ad

Recently uploaded (20)

PPTX
GDM (1) (1).pptx small presentation for students
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
master seminar digital applications in india
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
RMMM.pdf make it easy to upload and study
PDF
Complications of Minimal Access Surgery at WLH
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Types and Its function , kingdom of life
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Basic Mud Logging Guide for educational purpose
GDM (1) (1).pptx small presentation for students
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O7-L3 Supply Chain Operations - ICLT Program
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
master seminar digital applications in india
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Abdominal Access Techniques with Prof. Dr. R K Mishra
RMMM.pdf make it easy to upload and study
Complications of Minimal Access Surgery at WLH
Microbial disease of the cardiovascular and lymphatic systems
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Types and Its function , kingdom of life
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Insiders guide to clinical Medicine.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
VCE English Exam - Section C Student Revision Booklet
PPH.pptx obstetrics and gynecology in nursing
Basic Mud Logging Guide for educational purpose

Git

  • 1. GIT
  • 3. INSTALLATION:  For Windows : https://git-scm.com/download/win  For Debian / Ubuntu : $ apt-get install git  For macOS : https://git-scm.com/download/mac
  • 4. CONFIGURING YOUR GIT:  The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information: To do this type the command : $ git config --global user.name "John Doe" $ git config --global user.email “johndoe@example.com”
  • 5. INITIALIZING REPOSITORY • Command: $ git init To check status of repo • Command: $ git status
  • 6. ADDING FILES TO A REPO :  For single file Command : $ git add filename  For adding all files Command: $ git add .
  • 7. COMMIT AND LOG : TO COMMIT A SINGLE FILE :  Command: $ git commit filename –m ‘ description about commit ‘ TO COMMIT ALL FILES:  Command: $ git commit –am ‘ description about commit ‘ To see log Command: $ git log
  • 8. CHECKOUT:  Command : $ git checkout commit hash  For instant commit  Command: $ git checkout .
  • 9. branch  To list the branch list  Command : $ git branch  To create btanch  Command : $ git branch branch_name  To switch branch  Command : $ git checkout branch_name
  • 10. STASH:  To create stash  Command : $ git stash save changes  To list stash  Command : $ git stash list  To apply stash  $ git stash apply_id  For recent stash  $ git stash pop  To clear stash  $ git stash clear  To delete a particular stash  $ git stash drop id
  • 11.  CLONE  $ git clone from to  BARE  $ git init ––bare  Push  $ git push destination  Pull  $ git pull destination