GITDistributed Version Control SystemsJohannes Thönesjohannes.thoenes@gmail.comDNUG Koblenz / 2011-09-21
Version Control SystemsQuick VCS HistoryWhy Git?A Git Example
Git WorkflowsGit SVNGitHub
	Version Control Systems
	ChangesetsD
	RevisionBASEr101HEADDD
	CommitHEADr101D
	RepositoryBASED D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D  r101r102r103r104r105HEAD
	Working Copyr101
	Branchingtrunkr102r101r103r104r105
	Mergetrunkr102r101r103r104r105r106experimental
	Fork
	Tagrelease-1.2.5r101r103r102r104
	Quick VCS History
	RCScidocumentdocument, vco
	CVScommitRepositoryWorkingCopycheckout
	SVNcommitRepositoryWorkingCopycheckout
	GitcommitpushRemoteRepositoryLocalRepositoryWorkingCopyfetch/pullcheckout
	Git Indexadd/rmcommitresetcheckout
	Why Git?
Cheap Local Branching
Everything is local
Git is Small
Staging Area
Distributed
Secure
Workflow
	A Git Example
git clonemastermasterstable-1.2
git addgit commitgit rm
git pushgit pull
git branch accounting_uimasteraccounting_uigit checkout accounting_ui
git checkout mastergit pullgit checkout accounting_uigit rebase master
	Rebasetrunkexperimentalr2R4‘R5‘r1r3r4r5experimental
mastermasteraccounting_uistable-1.2accounting_uigit push
git fetchmastermasterstable-1.2new_accounting_uiaccounting_uigit branch --tracking new_accounting_ui remotes/origin/accounting_ui
git remote	 add …git clonegit pushgit pull
git checkout mastergit merge accounting_ui 	--no-ffgit push
	Git Workflows
CentralLarrySallyBOB
CentralAliceLarrySally
DictatorLEUTENANT Module 1LEUTENANT Module 2DEV 2DEV 5DEV 4DEV 1DEV 6DEV 3
	Git SVN
git svn clone
git svn init
git svn fetch
git svn rebase
git svn dcommit
git svn show-ignore >> .git/info/exclude
	GitHub
Questions?
Online Refenceshttp://book.git-scm.com
http://www.kernel.org/pub/software/scm/git/docs
http://git.or.cz/gitwiki/FrontPage
http://progit.org/book
http://whygitisbetterthanx.comWindows ClientsmsysGit - http://code.google.com/p/msysgit
SmartGit - http://www.syntevo.com/smartgit

Git