introduction to git and github
TRANSCRIPT
Introduction toGit and GitHub
2012/02/02
Git 101
• Distributed Version Control Systemo Design for speed and efficiency
• Open Source
Git 101
• Distributed Version Control Systemo Designed for speed and efficiency
• Open Source
git-scm.com
Git 101
• Distributed Version Control Systemo Designed for speed and efficiency
• Open Source
Version Control
• ??• ??
Version Control
• Visual Source Safe• CVS ( Concurrent Version System )• SVN ( SubVersion )• Bazaar • Mercurial ( hg )• Git
Git 101
• Distributed Version Control Systemo Designed for speed and efficiency
• Open Source
Local Version Control
Centralized Version Control
Centralized Version Control :: Cons
Distributed Version Control
Full mirror Full mirror
Distributed Version Control
Almost everything is local.
Distributed Version Control
Fast, backup andWork offline
Git 101
• Distributed Version Control Systemo Designed for speed and efficiency
• Open Source
Linux Team
FastSimpleParallel branch ( 1,000+ )Fully distributedHandle large project such as Linux kernel
Who use git ?
Hello Git
Install git on Windows
• Download from http://code.google.com/p/msysgit
Create User and Password
$ git config --global user.name "SomkiatP"$ git config --global user.email "[email protected]"
Create Repository
$ git init
View repository
$ tree -a
Download tree for win32 at http://sourceforge.net/projects/gnuwin32/files/tree/
Add new file
$ touch test_1.txt$ git add test_1.txt$ git commit -m 'First commit'
View repository$ tree -a
Help me$ git help
Help me$ git help <command>$ git help init
Clone
Now, We don't have Git Server.
But we have GitHub.com
GitHub.com
Welcome to GitHub
• Register and login• Ready to use ....
Create new repository
After created,Everything you should know and do
Setting git before using github
• Generate SSH key in git ( Local )• $ssh-keygen -t rsa -C "[email protected]"
Copy data in file id_rsa.pub to github
Manage data with github
• $ git config --global user.name "up1"• $ git config --global user.email [email protected]• $ git init• $ touch README• $ git add README• $ git commit -m 'first commit'• $ git remote add origin [email protected]:up1/----
hello_tarad.git• $ git push -u origin master
Manage data with github ( demo )
Manage data with github (demo)
See result at github, Work !!
Come back to Clone repository
• Copy URL of repository from github
Clone repository
• $ git clone https://[email protected]/up1/----hello_tarad.git
Required password of gitbub
Good Resource for beginner
progit.org
https://github.com/opendream/progit