SlideShare a Scribd company logo
Git tutorial Lydian2011/5/12
Git V.S. SVN 	SVN: single repository Git: multiple repositoryCentralized Version Control SystemDistributed Version Control System
Create a RepositoryCreate Newmkdir/home/lydian/mygit.gitcd/home/lydian/mygit.gitgitinit–bareClone from existed repositorygit clone /home/lydian/mygit.gittestgitcdtestgit
Create a Repository from Existed DirectoryInitialize a local git repositorycd projectgitinitSet Remote commit git remote add origin/home/lydian/mygit.git
Commit & UpdateLocal commit current filesgit add -agit commit -m‘comment’Remote commitgit push origin masterSimilar tosvn commitFetch data from remote repositorygit pullSimilar to  svn update
SSH to Repositoryclonegit clonelydian@lime.csie.org:/home/lydian/mygit.gittestgitassign remote repositorygit remote add origin lydian@lime.csie.org:/home/lydian/mygit.git
Moreman git [commit/clone/pull/push, etc.]Official website: http://git-scm.com/寫給大家的git教學http://www.slideshare.net/littlebtc/git-5528339

More Related Content

PPT
Git basic
PDF
Git for beginners
PPTX
Git - Basic Crash Course
PPTX
GitHub Basics - Derek Bable
PPTX
Intro to Git and GitHub
KEY
Introduction to Git
PDF
Git tutorial II
PPT
Git101
Git basic
Git for beginners
Git - Basic Crash Course
GitHub Basics - Derek Bable
Intro to Git and GitHub
Introduction to Git
Git tutorial II
Git101

What's hot (20)

PPTX
Introduction to git and github
PPTX
Git in 10 minutes
PPTX
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
PDF
Introduction to GitHub
PDF
Git and github 101
PPTX
Git basics to advance with diagrams
KEY
The everyday developer's guide to version control with Git
PDF
A Practical Introduction to git
PDF
Git basics
KEY
Introduction To Git
PPTX
Github basics
PPT
Introduction to Git and Github
PDF
git and github
PPTX
Introduction to Git and GitHub Part 1
PPTX
Git 101 for Beginners
PDF
Git introduction workshop for scientists
PDF
Git and GitHub crash course
PDF
Learning git
PPTX
Git tutorial
PDF
Git Version Control System
Introduction to git and github
Git in 10 minutes
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Introduction to GitHub
Git and github 101
Git basics to advance with diagrams
The everyday developer's guide to version control with Git
A Practical Introduction to git
Git basics
Introduction To Git
Github basics
Introduction to Git and Github
git and github
Introduction to Git and GitHub Part 1
Git 101 for Beginners
Git introduction workshop for scientists
Git and GitHub crash course
Learning git
Git tutorial
Git Version Control System
Ad

Viewers also liked (20)

PDF
Quick Introduction to git
PDF
Git 101: Git and GitHub for Beginners
PPT
Git 101 - Crash Course in Version Control using Git
PDF
Git Tutorial 教學
PDF
Git tutorial
PPT
Gastrointestinal tract
PDF
Introduction to git
PPTX
Introduction to Git/Github - A beginner's guide
PDF
Git Introduction Tutorial
PDF
Git 101 tutorial presentation
PDF
Mini-tutorial de git
PPTX
From svn to git
PPSX
Hebreo tecnica para estudiar
PDF
SVN 2 Git
PPTX
The Chaldean Empire
DOCX
Kontribusyon ng sumer
PPT
Chaldean
PPS
Babilonia
PPT
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
PPTX
Chaldean
Quick Introduction to git
Git 101: Git and GitHub for Beginners
Git 101 - Crash Course in Version Control using Git
Git Tutorial 教學
Git tutorial
Gastrointestinal tract
Introduction to git
Introduction to Git/Github - A beginner's guide
Git Introduction Tutorial
Git 101 tutorial presentation
Mini-tutorial de git
From svn to git
Hebreo tecnica para estudiar
SVN 2 Git
The Chaldean Empire
Kontribusyon ng sumer
Chaldean
Babilonia
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
Chaldean
Ad

Similar to Git tutorial (20)

PDF
Git Tutorial I
PPTX
KEY
Introduction to Git
KEY
Git Tech Talk
PDF
Git in Eclipse
PPT
Git training
PPTX
11 git version control
PPT
Git installation and configuration
PDF
Svn to-git
KEY
Git Magic: Versioning Files like a Boss
KEY
Git isthenewsexy
PDF
Git 入门 与 实践
PDF
Git & version control crash course
PDF
Git 入门与实践
PDF
PPT
Git and fundamentals
PPTX
Git 101 for_tarad_dev
KEY
Git使用
PDF
Git for the Android Developer
PDF
SCM for Android Developers Using Git
Git Tutorial I
Introduction to Git
Git Tech Talk
Git in Eclipse
Git training
11 git version control
Git installation and configuration
Svn to-git
Git Magic: Versioning Files like a Boss
Git isthenewsexy
Git 入门 与 实践
Git & version control crash course
Git 入门与实践
Git and fundamentals
Git 101 for_tarad_dev
Git使用
Git for the Android Developer
SCM for Android Developers Using Git

Recently uploaded (20)

PPTX
Learn numerology content and join tarot reading
PPTX
this was uploaded by gurvindertimepass.pptx
PDF
The Zeigarnik Effect by Meenakshi Khakat.pdf
PPT
cypt-cht-healthy-relationships-part1-presentation-v1.1en.ppt
PDF
Emotional Mastery for Police Officers.pdf
PDF
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
PPTX
Learn how to prevent Workplace Incidents?
PPTX
Module-1-Nature-and-Process-of-Communication.pptx
PPTX
PERDEV-LESSON-3 DEVELOPMENTMENTAL STAGES.pptx
PPT
proper hygiene for teenagers for secondary students .ppt
PPT
WORKPLACE HARMONY AND HOW TO BEHAVE IN THE WORKPLACE
PPTX
Chapter-7-The-Spiritual-Self-.pptx-First
PPTX
diasspresentationndkcnskndncelklkfndc.pptx
PPTX
Presentation on interview preparation.pt
PPTX
How to Deal with Imposter Syndrome for Personality Development?
PDF
Dating And Courtship Quotes Handbook By Walter Tynash.pdf
PPTX
Travel mania in india needs to change the world
PPTX
When yu want to feel but you cant:Emotional Detatchment.pptx
PPTX
How to Manage Emotional Triggers for Personal Growth?
PDF
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
Learn numerology content and join tarot reading
this was uploaded by gurvindertimepass.pptx
The Zeigarnik Effect by Meenakshi Khakat.pdf
cypt-cht-healthy-relationships-part1-presentation-v1.1en.ppt
Emotional Mastery for Police Officers.pdf
Elle Lalli on The Role of Emotional Intelligence in Entrepreneurship
Learn how to prevent Workplace Incidents?
Module-1-Nature-and-Process-of-Communication.pptx
PERDEV-LESSON-3 DEVELOPMENTMENTAL STAGES.pptx
proper hygiene for teenagers for secondary students .ppt
WORKPLACE HARMONY AND HOW TO BEHAVE IN THE WORKPLACE
Chapter-7-The-Spiritual-Self-.pptx-First
diasspresentationndkcnskndncelklkfndc.pptx
Presentation on interview preparation.pt
How to Deal with Imposter Syndrome for Personality Development?
Dating And Courtship Quotes Handbook By Walter Tynash.pdf
Travel mania in india needs to change the world
When yu want to feel but you cant:Emotional Detatchment.pptx
How to Manage Emotional Triggers for Personal Growth?
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...

Git tutorial

  • 2. Git V.S. SVN SVN: single repository Git: multiple repositoryCentralized Version Control SystemDistributed Version Control System
  • 3. Create a RepositoryCreate Newmkdir/home/lydian/mygit.gitcd/home/lydian/mygit.gitgitinit–bareClone from existed repositorygit clone /home/lydian/mygit.gittestgitcdtestgit
  • 4. Create a Repository from Existed DirectoryInitialize a local git repositorycd projectgitinitSet Remote commit git remote add origin/home/lydian/mygit.git
  • 5. Commit & UpdateLocal commit current filesgit add -agit commit -m‘comment’Remote commitgit push origin masterSimilar tosvn commitFetch data from remote repositorygit pullSimilar to svn update
  • 6. SSH to Repositoryclonegit [email protected]:/home/lydian/mygit.gittestgitassign remote repositorygit remote add origin [email protected]:/home/lydian/mygit.git
  • 7. Moreman git [commit/clone/pull/push, etc.]Official website: http://git-scm.com/寫給大家的git教學http://www.slideshare.net/littlebtc/git-5528339