SlideShare a Scribd company logo
Git Basics
Vipul Bajaj
CSE 8 Semester
What we'll cover
 Concept of Version control system
 Concept of Git
 Some basic commands
Version control
Most used Concurrent version system(CVS) and
Subversion(SVN).
Key concepts:
 Central source control system
 users check code into server
 requires connection to the server to perform
commits, updates etc.
Git????
• Distributed Version Control System
• Like sub-version but better...
• Created by Linus Torvald
Why Git???
• Distributed repository
• Self contained
• Full history of commit
• You can commit/branch/merge locally
• Read fast and offline
• No "latest revision": revision unique ID
Git Started
Move to A directory with code you’d like to manage
with git :
# git init
You’ve now created your first git repository!
For remote repository access:
# git clone remote_git_repository_url Example:
# git clone git@github.com:mobbazaar/api
Work Flow
Useful basics commands
git init repository setup
git add add files to queue for next commit
git commit commit queued files
git push push commit(s) to remote repository
git pull fetch changes from remote repository
git clone clone repository into a local directory
.gitignore ignore specific files by adding them here
Continued….
git status Show uncommited changes
git rm Remove a file from a repository
git mv Move a file within repository
git diff Generate a differences betweenmultiple commits
git log View a log of commits
Demo
git init
• First create the repository by init
command.
• # git init
git add
• Add a untracked/modifed file to staging area
• # git add <filename>
git commit
• Put the staged snapshot into the committed
history.
• # g i t commit -m “commitmessage”
• # g i t comit --amend
 Combine the staged changes with the previous
commit and replace the previous commit with
the resulting snapshot.
git push
• Usage # git push
• g i t push --set-upstream origin<branch>
o Pushes commits to <branch>

More Related Content

PPTX
Git presentation
Sai Kumar Satapathy
 
PPTX
BitBucket presentation
Jonathan Lawerh
 
PPSX
Git the fast version control system
Jeroen Rosenberg
 
PPTX
Version control system and Git
ramubonkuri
 
PPTX
Bitbucket
Okba Mahdjoub
 
PPTX
HacktoberFest-Git&GitHub
GDSCIIITBbsr
 
PPTX
Git overview
Gowarthini
 
PDF
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
Atlassian
 
Git presentation
Sai Kumar Satapathy
 
BitBucket presentation
Jonathan Lawerh
 
Git the fast version control system
Jeroen Rosenberg
 
Version control system and Git
ramubonkuri
 
Bitbucket
Okba Mahdjoub
 
HacktoberFest-Git&GitHub
GDSCIIITBbsr
 
Git overview
Gowarthini
 
AtlasCamp 2015: Bitbucket: Building kick-ass tools for 2.5M developers
Atlassian
 

What's hot (20)

KEY
Git with bitbucket
Sumin Byeon
 
PDF
Session: Git Basics & GitFlow Workflow
Midhun Mohanan
 
PDF
Git strategies for DevOps
Ahmad Iqbal Ali
 
PPTX
Git tutorial git branches 20131206-Bryan
LearningTech
 
PPTX
Workshop on Git and GitHub
DSCVSSUT
 
PPTX
Using Git and BitBucket
Medhat Dawoud
 
PDF
Introduction to Git
Yan Vugenfirer
 
PPTX
Git and github fundamentals
RajKharvar
 
PPTX
Introduction to github slideshare
Rakesh Sukumar
 
PDF
Intro to Git & GitHub
GoogleDevelopersStud
 
ODP
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Parag Gajbhiye
 
PDF
Git and GitHub workflows
Arthur Shvetsov
 
PPTX
Cloud agnostic serverless with fn project
Todor Todorov
 
PPTX
Git and Github Session
GoogleDevelopersStud1
 
PPTX
Webinar : SVN to GIT Migration
Newt Global Consulting LLC
 
PPTX
Introduction to Git
Rumesh Hapuarachchi
 
PPTX
Git n git hub
Jiwon Baek
 
PPTX
Version control system
Aryman Gautam
 
PPT
Source Code management System
Karthikeyan Annamalai
 
PPTX
Git from SVN
Justin Yoo
 
Git with bitbucket
Sumin Byeon
 
Session: Git Basics & GitFlow Workflow
Midhun Mohanan
 
Git strategies for DevOps
Ahmad Iqbal Ali
 
Git tutorial git branches 20131206-Bryan
LearningTech
 
Workshop on Git and GitHub
DSCVSSUT
 
Using Git and BitBucket
Medhat Dawoud
 
Introduction to Git
Yan Vugenfirer
 
Git and github fundamentals
RajKharvar
 
Introduction to github slideshare
Rakesh Sukumar
 
Intro to Git & GitHub
GoogleDevelopersStud
 
Introduction to Git(BitBucket) , Continuous Integration (Bamboo) & Confluence
Parag Gajbhiye
 
Git and GitHub workflows
Arthur Shvetsov
 
Cloud agnostic serverless with fn project
Todor Todorov
 
Git and Github Session
GoogleDevelopersStud1
 
Webinar : SVN to GIT Migration
Newt Global Consulting LLC
 
Introduction to Git
Rumesh Hapuarachchi
 
Git n git hub
Jiwon Baek
 
Version control system
Aryman Gautam
 
Source Code management System
Karthikeyan Annamalai
 
Git from SVN
Justin Yoo
 
Ad

Similar to Git Basics (20)

PPTX
Presentation on Repository Control System
Md. Mujahid Islam
 
PPTX
01 - Git vs SVN
Edward Goikhman
 
PDF
Git training v10
Skander Hamza
 
PPTX
Git-guidance for beginner- IT support.pptx.pptx
vietnguyen1989
 
PPTX
Git-guidance for beginner- IT support.pptx
vietnguyen1989
 
PDF
Starting with Git & GitHub
Nicolás Tourné
 
PPTX
Source-it Version-contol & GIT - floating-lesson
Yoram Michaeli
 
PPTX
Learning Basic GIT Cmd
srinathcox
 
PPTX
GIT
Binu Paul
 
ODP
introduction in version control system
Biga Gaber
 
PPTX
GIT.pptx
Soumen Debgupta
 
PPTX
Version Control with Git
Sahil Agarwal
 
PDF
Version Control History and Git Basics
Sreedath N S
 
PDF
Version control and GIT Primer
saadulde
 
PDF
Git basics for beginners
PravallikaTammisetty
 
PDF
git.ppt.pdf
Roniel Lopez Alvarez
 
PPTX
git.ppt.pptx power point presentation got Google internet
rani marri
 
PDF
Git & version control crash course
Eslam Saeed
 
PPTX
Getting with GIT
Moyinoluwa Adeyemi
 
Presentation on Repository Control System
Md. Mujahid Islam
 
01 - Git vs SVN
Edward Goikhman
 
Git training v10
Skander Hamza
 
Git-guidance for beginner- IT support.pptx.pptx
vietnguyen1989
 
Git-guidance for beginner- IT support.pptx
vietnguyen1989
 
Starting with Git & GitHub
Nicolás Tourné
 
Source-it Version-contol & GIT - floating-lesson
Yoram Michaeli
 
Learning Basic GIT Cmd
srinathcox
 
introduction in version control system
Biga Gaber
 
GIT.pptx
Soumen Debgupta
 
Version Control with Git
Sahil Agarwal
 
Version Control History and Git Basics
Sreedath N S
 
Version control and GIT Primer
saadulde
 
Git basics for beginners
PravallikaTammisetty
 
git.ppt.pptx power point presentation got Google internet
rani marri
 
Git & version control crash course
Eslam Saeed
 
Getting with GIT
Moyinoluwa Adeyemi
 
Ad

Recently uploaded (20)

PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PPTX
Trends in pediatric nursing .pptx
AneetaSharma15
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
CDH. pptx
AneetaSharma15
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Trends in pediatric nursing .pptx
AneetaSharma15
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 

Git Basics

  • 2. What we'll cover  Concept of Version control system  Concept of Git  Some basic commands
  • 3. Version control Most used Concurrent version system(CVS) and Subversion(SVN). Key concepts:  Central source control system  users check code into server  requires connection to the server to perform commits, updates etc.
  • 4. Git???? • Distributed Version Control System • Like sub-version but better... • Created by Linus Torvald
  • 5. Why Git??? • Distributed repository • Self contained • Full history of commit • You can commit/branch/merge locally • Read fast and offline • No "latest revision": revision unique ID
  • 6. Git Started Move to A directory with code you’d like to manage with git : # git init You’ve now created your first git repository! For remote repository access: # git clone remote_git_repository_url Example: # git clone [email protected]:mobbazaar/api
  • 8. Useful basics commands git init repository setup git add add files to queue for next commit git commit commit queued files git push push commit(s) to remote repository git pull fetch changes from remote repository git clone clone repository into a local directory .gitignore ignore specific files by adding them here
  • 9. Continued…. git status Show uncommited changes git rm Remove a file from a repository git mv Move a file within repository git diff Generate a differences betweenmultiple commits git log View a log of commits
  • 10. Demo
  • 11. git init • First create the repository by init command. • # git init
  • 12. git add • Add a untracked/modifed file to staging area • # git add <filename>
  • 13. git commit • Put the staged snapshot into the committed history. • # g i t commit -m “commitmessage” • # g i t comit --amend  Combine the staged changes with the previous commit and replace the previous commit with the resulting snapshot.
  • 14. git push • Usage # git push • g i t push --set-upstream origin<branch> o Pushes commits to <branch>