• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
A byte of git
 

A byte of git

on

  • 320 views

 

Statistics

Views

Total Views
320
Views on SlideShare
320
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

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

    A byte of git A byte of git Presentation Transcript

    • a byte of git weng.wei@zalora.sg Friday, July 5, 13
    • • Linus Torvalds on git • http://www.youtube.com/watch? v=4XpnKHJAok8 Friday, July 5, 13
    • • "tinker and fix things that aren't broken" - The greatest geek who ever lived • http://theoatmeal.com/comics/tesla Friday, July 5, 13
    • No Silver Bullet Git solves problems with some price Friday, July 5, 13
    • Git is hard • Different concept • More concept • More command • Not Windows friendly Friday, July 5, 13
    • concepts • changesetVS revision • distributedVS centralized • http://hginit.com/00.html • a Mercurial tutorial by Joel Spolsky • Subversion Re-education Friday, July 5, 13
    • git staging • demo Friday, July 5, 13
    • git ci --amend • Edit commit history is common • sacred revision history in SVN Friday, July 5, 13
    • git push • commit is only local • Must push to remote repo Friday, July 5, 13
    • Why bother? • staging / commit / amend / push • vs svn commit • Better change management !!! Friday, July 5, 13
    • git stash • Demo Friday, July 5, 13
    • git branch • very cheap to create • 16 bytes written on local disk • git flow Friday, July 5, 13
    • Friday, July 5, 13
    • SVN upstream Friday, July 5, 13
    • Problem! • svn diff -r 354791:358048 > ../ SEAFAS-7136.diff • Take hours • SEAFAS-7136.diff • 33361 lines • Contains changes from trunk Friday, July 5, 13
    • • How long does it take to upstream on branch? • What if you have 10 branches to do upstream? • What if upstream has conflicts? Friday, July 5, 13
    • All SVN problems have SVN solutions We could do everything in SVN.. Friday, July 5, 13
    • BUT! We don’t have to Friday, July 5, 13
    • git rebase • Take seconds • Error? • git rebase --abort • Or, test in a new branch Friday, July 5, 13
    • Demo Friday, July 5, 13
    • Awesome git usages • host your blog • deployment tools • ... Friday, July 5, 13
    • git for deployment demo with heroku Friday, July 5, 13
    • Q & A Friday, July 5, 13
    • Access control • Via ssh • Read & Write access control • Different repos with different access • production repo • staging repo Friday, July 5, 13
    • GUI? • Who needs GUI? • Mac • SourceTree • Win & Linux • TortoiseGit? Friday, July 5, 13