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
Ad

More Related Content

What's hot (20)

Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Git in 10 minutes
Git in 10 minutesGit in 10 minutes
Git in 10 minutes
Safique Ahmed Faruque
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
Nishan Bose
 
Git and github 101
Git and github 101Git and github 101
Git and github 101
Senthilkumar Gopal
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
E Carter
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
Emanuele Olivetti
 
Git basics
Git basicsGit basics
Git basics
GHARSALLAH Mohamed
 
Introduction To Git
Introduction To GitIntroduction To Git
Introduction To Git
Arnaud Seilles
 
Github basics
Github basicsGithub basics
Github basics
Radoslav Georgiev
 
Introduction to Git and Github
Introduction to Git and GithubIntroduction to Git and Github
Introduction to Git and Github
Somkiat Puisungnoen
 
git and github
git and githubgit and github
git and github
Darren Oakley
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
 
Git 101 for Beginners
Git 101 for Beginners Git 101 for Beginners
Git 101 for Beginners
Anurag Upadhaya
 
Git introduction workshop for scientists
Git introduction workshop for scientists Git introduction workshop for scientists
Git introduction workshop for scientists
Steven Hamblin
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
Mireia Sangalo
 
Learning git
Learning gitLearning git
Learning git
Sid Anand
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
Pham Quy (Jack)
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
KMS Technology
 
Introduction to git and github
Introduction to git and githubIntroduction to git and github
Introduction to git and github
Aderemi Dadepo
 
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Git Tutorial For Beginners | What is Git and GitHub? | DevOps Tools | DevOps ...
Simplilearn
 
Introduction to GitHub
Introduction to GitHubIntroduction to GitHub
Introduction to GitHub
Nishan Bose
 
Git basics to advance with diagrams
Git basics to advance with diagramsGit basics to advance with diagrams
Git basics to advance with diagrams
Dilum Navanjana
 
The everyday developer's guide to version control with Git
The everyday developer's guide to version control with GitThe everyday developer's guide to version control with Git
The everyday developer's guide to version control with Git
E Carter
 
A Practical Introduction to git
A Practical Introduction to gitA Practical Introduction to git
A Practical Introduction to git
Emanuele Olivetti
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
Omar Fathy
 
Git introduction workshop for scientists
Git introduction workshop for scientists Git introduction workshop for scientists
Git introduction workshop for scientists
Steven Hamblin
 
Git and GitHub crash course
Git and GitHub crash courseGit and GitHub crash course
Git and GitHub crash course
Mireia Sangalo
 
Learning git
Learning gitLearning git
Learning git
Sid Anand
 
Git Version Control System
Git Version Control SystemGit Version Control System
Git Version Control System
KMS Technology
 

Viewers also liked (20)

Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
Joel Krebs
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
HubSpot
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
Geoff Hoffman
 
Git tutorial
Git tutorialGit tutorial
Git tutorial
Elli Kanal
 
Gastrointestinal tract
Gastrointestinal tractGastrointestinal tract
Gastrointestinal tract
Rawalpindi Medical College
 
Introduction to git
Introduction to gitIntroduction to git
Introduction to git
Randal Schwartz
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
Rohit Arora
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
Thomas Rausch
 
Git 101 tutorial presentation
Git 101 tutorial presentationGit 101 tutorial presentation
Git 101 tutorial presentation
Terry Wang
 
Mini-tutorial de git
Mini-tutorial de gitMini-tutorial de git
Mini-tutorial de git
Antonio Ognio
 
From svn to git
From svn to gitFrom svn to git
From svn to git
Nehal Shah
 
Hebreo tecnica para estudiar
Hebreo tecnica para estudiarHebreo tecnica para estudiar
Hebreo tecnica para estudiar
Mauricio Martinez
 
SVN 2 Git
SVN 2 GitSVN 2 Git
SVN 2 Git
Marco De Stefano
 
The Chaldean Empire
The Chaldean EmpireThe Chaldean Empire
The Chaldean Empire
Youssef Moussa
 
Kontribusyon ng sumer
Kontribusyon ng sumerKontribusyon ng sumer
Kontribusyon ng sumer
Millete
 
Chaldean
ChaldeanChaldean
Chaldean
Yña Tejol
 
Babilonia
BabiloniaBabilonia
Babilonia
Robin Hood
 
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
Hittites, Ancient Greece, Assyrians, Babylonians, And PhoeniciansHittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
ryan
 
Chaldean
Chaldean Chaldean
Chaldean
Sunako Nakahara
 
Quick Introduction to git
Quick Introduction to gitQuick Introduction to git
Quick Introduction to git
Joel Krebs
 
Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners Git 101: Git and GitHub for Beginners
Git 101: Git and GitHub for Beginners
HubSpot
 
Git 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using GitGit 101 - Crash Course in Version Control using Git
Git 101 - Crash Course in Version Control using Git
Geoff Hoffman
 
Introduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guideIntroduction to Git/Github - A beginner's guide
Introduction to Git/Github - A beginner's guide
Rohit Arora
 
Git Introduction Tutorial
Git Introduction TutorialGit Introduction Tutorial
Git Introduction Tutorial
Thomas Rausch
 
Git 101 tutorial presentation
Git 101 tutorial presentationGit 101 tutorial presentation
Git 101 tutorial presentation
Terry Wang
 
Mini-tutorial de git
Mini-tutorial de gitMini-tutorial de git
Mini-tutorial de git
Antonio Ognio
 
From svn to git
From svn to gitFrom svn to git
From svn to git
Nehal Shah
 
Hebreo tecnica para estudiar
Hebreo tecnica para estudiarHebreo tecnica para estudiar
Hebreo tecnica para estudiar
Mauricio Martinez
 
Kontribusyon ng sumer
Kontribusyon ng sumerKontribusyon ng sumer
Kontribusyon ng sumer
Millete
 
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
Hittites, Ancient Greece, Assyrians, Babylonians, And PhoeniciansHittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
Hittites, Ancient Greece, Assyrians, Babylonians, And Phoenicians
ryan
 
Ad

Similar to Git tutorial (20)

Git
GitGit
Git
Gayan Kalanamith Mannapperuma
 
Git learn from scratch
Git learn from scratchGit learn from scratch
Git learn from scratch
Mir Arif Hasan
 
Git
GitGit
Git
Terry Wang
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
GIT By Sivakrishna
GIT By SivakrishnaGIT By Sivakrishna
GIT By Sivakrishna
Nyros Technologies
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 
Basic git
Basic gitBasic git
Basic git
Casper Chen
 
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.pptgit2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
loleto7559
 
Git and GitHUB Explanation and simple coding for CLI
Git and GitHUB Explanation and simple coding for CLIGit and GitHUB Explanation and simple coding for CLI
Git and GitHUB Explanation and simple coding for CLI
kumaresan7751
 
Atlanta Pm Git 101
Atlanta Pm Git 101Atlanta Pm Git 101
Atlanta Pm Git 101
Jason Noble
 
git2.ppt
git2.pptgit2.ppt
git2.ppt
ssusered2ec2
 
Git setuplinux
Git setuplinuxGit setuplinux
Git setuplinux
Shubham Verma
 
GitSetupLinux
GitSetupLinuxGitSetupLinux
GitSetupLinux
Shubham Verma
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
Git
GitGit
Git
Hanokh Aloni
 
Git Heaven with Wakanda
Git Heaven with WakandaGit Heaven with Wakanda
Git Heaven with Wakanda
Juergen Fesslmeier
 
14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx14 oct Git & GitHub.pptx
14 oct Git & GitHub.pptx
GDSCGHRIETNagpur
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Lets Git Together
Lets Git TogetherLets Git Together
Lets Git Together
Rakesh Jha
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
Brian K. Vagnini
 
Git learn from scratch
Git learn from scratchGit learn from scratch
Git learn from scratch
Mir Arif Hasan
 
Git 入门与实践
Git 入门与实践Git 入门与实践
Git 入门与实践
Terry Wang
 
Git 入门 与 实践
Git 入门 与 实践Git 入门 与 实践
Git 入门 与 实践
Terry Wang
 
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.pptgit2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
git2nvlkndvslnvdslnlknvdlnlvdsnlknsdvlkn.ppt
loleto7559
 
Git and GitHUB Explanation and simple coding for CLI
Git and GitHUB Explanation and simple coding for CLIGit and GitHUB Explanation and simple coding for CLI
Git and GitHUB Explanation and simple coding for CLI
kumaresan7751
 
Atlanta Pm Git 101
Atlanta Pm Git 101Atlanta Pm Git 101
Atlanta Pm Git 101
Jason Noble
 
Introduction to Git and Github
Introduction to Git and Github Introduction to Git and Github
Introduction to Git and Github
Max Claus Nunes
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
gdsc13
 
Lets Git Together
Lets Git TogetherLets Git Together
Lets Git Together
Rakesh Jha
 
Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615Intro to Git DevOps Tally Presentation 101615
Intro to Git DevOps Tally Presentation 101615
Brian K. Vagnini
 
Ad

Recently uploaded (10)

"Master Time Management for Ultimate Productivity"
"Master Time Management for Ultimate Productivity""Master Time Management for Ultimate Productivity"
"Master Time Management for Ultimate Productivity"
srinujam1
 
crucial-conversations-training-powerpoint.pptx
crucial-conversations-training-powerpoint.pptxcrucial-conversations-training-powerpoint.pptx
crucial-conversations-training-powerpoint.pptx
vikramdas40
 
How to Prepare for and Survive a Power Outage
How to Prepare for and Survive a Power OutageHow to Prepare for and Survive a Power Outage
How to Prepare for and Survive a Power Outage
Bob Mayer
 
ee case study and evaluation of biodiesel
ee case study and evaluation of biodieselee case study and evaluation of biodiesel
ee case study and evaluation of biodiesel
SwaroopDalvi
 
How You Can Increase Your Salary by Following These Frameworks?
How You Can Increase Your Salary by Following These Frameworks?How You Can Increase Your Salary by Following These Frameworks?
How You Can Increase Your Salary by Following These Frameworks?
Chandan Patary
 
Miracles Through Mindset: Lessons from the Global Battle Against Polio
Miracles Through Mindset: Lessons from the Global Battle Against PolioMiracles Through Mindset: Lessons from the Global Battle Against Polio
Miracles Through Mindset: Lessons from the Global Battle Against Polio
Chandan Patary
 
7ELeadership Framework_Mental Agility.pdf
7ELeadership Framework_Mental Agility.pdf7ELeadership Framework_Mental Agility.pdf
7ELeadership Framework_Mental Agility.pdf
Chandan Patary
 
road-safety.In India, road accidents are among the top causes of death especi...
road-safety.In India, road accidents are among the top causes of death especi...road-safety.In India, road accidents are among the top causes of death especi...
road-safety.In India, road accidents are among the top causes of death especi...
ayanmalik64967
 
Embracing Adaptability (setback) - Istvan Patzay
Embracing Adaptability (setback) - Istvan PatzayEmbracing Adaptability (setback) - Istvan Patzay
Embracing Adaptability (setback) - Istvan Patzay
isti84
 
Violence against women , finding from the 2008 national demografic
Violence against women , finding from the 2008 national demograficViolence against women , finding from the 2008 national demografic
Violence against women , finding from the 2008 national demografic
oppateamo1234
 
"Master Time Management for Ultimate Productivity"
"Master Time Management for Ultimate Productivity""Master Time Management for Ultimate Productivity"
"Master Time Management for Ultimate Productivity"
srinujam1
 
crucial-conversations-training-powerpoint.pptx
crucial-conversations-training-powerpoint.pptxcrucial-conversations-training-powerpoint.pptx
crucial-conversations-training-powerpoint.pptx
vikramdas40
 
How to Prepare for and Survive a Power Outage
How to Prepare for and Survive a Power OutageHow to Prepare for and Survive a Power Outage
How to Prepare for and Survive a Power Outage
Bob Mayer
 
ee case study and evaluation of biodiesel
ee case study and evaluation of biodieselee case study and evaluation of biodiesel
ee case study and evaluation of biodiesel
SwaroopDalvi
 
How You Can Increase Your Salary by Following These Frameworks?
How You Can Increase Your Salary by Following These Frameworks?How You Can Increase Your Salary by Following These Frameworks?
How You Can Increase Your Salary by Following These Frameworks?
Chandan Patary
 
Miracles Through Mindset: Lessons from the Global Battle Against Polio
Miracles Through Mindset: Lessons from the Global Battle Against PolioMiracles Through Mindset: Lessons from the Global Battle Against Polio
Miracles Through Mindset: Lessons from the Global Battle Against Polio
Chandan Patary
 
7ELeadership Framework_Mental Agility.pdf
7ELeadership Framework_Mental Agility.pdf7ELeadership Framework_Mental Agility.pdf
7ELeadership Framework_Mental Agility.pdf
Chandan Patary
 
road-safety.In India, road accidents are among the top causes of death especi...
road-safety.In India, road accidents are among the top causes of death especi...road-safety.In India, road accidents are among the top causes of death especi...
road-safety.In India, road accidents are among the top causes of death especi...
ayanmalik64967
 
Embracing Adaptability (setback) - Istvan Patzay
Embracing Adaptability (setback) - Istvan PatzayEmbracing Adaptability (setback) - Istvan Patzay
Embracing Adaptability (setback) - Istvan Patzay
isti84
 
Violence against women , finding from the 2008 national demografic
Violence against women , finding from the 2008 national demograficViolence against women , finding from the 2008 national demografic
Violence against women , finding from the 2008 national demografic
oppateamo1234
 

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