KEMBAR78
Git tutorial | PPTX
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

Git tutorial

  • 1.
  • 2.
    Git V.S. SVN SVN: single repository Git: multiple repositoryCentralized Version Control SystemDistributed Version Control System
  • 3.
    Create a RepositoryCreateNewmkdir/home/lydian/mygit.gitcd/home/lydian/mygit.gitgitinit–bareClone from existed repositorygit clone /home/lydian/mygit.gittestgitcdtestgit
  • 4.
    Create a Repositoryfrom Existed DirectoryInitialize a local git repositorycd projectgitinitSet Remote commit git remote add origin/home/lydian/mygit.git
  • 5.
    Commit & UpdateLocalcommit 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 Repositoryclonegitclonelydian@lime.csie.org:/home/lydian/mygit.gittestgitassign remote repositorygit remote add origin lydian@lime.csie.org:/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