Git 101 for_tarad_dev
Upcoming SlideShare
Loading in...5
×
 

Git 101 for_tarad_dev

on

  • 565 views

 

Statistics

Views

Total Views
565
Views on SlideShare
565
Embed Views
0

Actions

Likes
2
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Git 101 for_tarad_dev Git 101 for_tarad_dev Presentation Transcript

    • Git 1012013/03/12 @somkiat 1
    • Why Version Control ? 2
    • Why Version Control ? Collaboration issues !!! 3
    • Version Control• Local• Centralize• Distributed 4
    • Local 5http://git-scm.com/book/en/Getting-Started-About-Version-Control
    • Centralize 6http://git-scm.com/book/en/Getting-Started-About-Version-Control
    • Distributed 7http://git-scm.com/book/en/Getting-Started-About-Version-Control
    • Version Control• Local – Copy file and folder• Centralize – Control Version System ( CVS ) – Subversion ( SVN )• Distributed – Git – Mercurial Hg – Bazaar 8
    • Why Git ?1. Distributed => No Single of Failure 9
    • Why Git ?2. Simple design :: Less config file VS 10
    • Why Git ? 3. Speed :: Work on local 11From git real slide ( http://www.codeschool.com )
    • Who use Git ? http://git-scm.com/ 12
    • Starting with Git• Command line interface• Many Graphic User Interface (GUI)• Download at http://git-scm.com 13
    • Git Help $ git help 14
    • Git Help$ git help <command> 15
    • Git Setting $ git config <name> <value>• $ git config --global user.name “Your name”• $ git config --global user.email “Your email”• $ git config --global color.ui true• $ git config --list 16
    • Starting your repository $ git init 17
    • Starting your repository $ git init 18
    • Git work flowhttp://git-scm.com/book/en/Getting-Started-Git-Basics 19
    • Git work flow• Create file README.txt – Start as untracked• Add file to staging area – Ready to take a picture• Commit change – Snapshot on the stage 20
    • Create file README.txt$touch README.txt$git status New file and untracked 21
    • Add file to staging area$git add README.txt$git status Staged file 22
    • Commit change$git commit –m “Create file README.txt”$git status Working on branch master 23
    • TODO• Modify file README.txt• Create file LICENSE• Add both files to staging area• Commit change 24
    • Different way to add• git add <list of file>• git add –all• git add *.txt• git add docs/*.txt• git add docs/• git add “*.txt” 25
    • Git timeline history$git log History message 26
    • Homework• Learn git with github.com – http://try.github.com/ 27
    • Next• Git merge• Git branch• Collaboration – Git remote • Branch • Tag• Git rebase• History and configuration 28