Git = Geek?
                   Eric Hsu




13年2月24⽇日星期⽇日                 1
Life is changing
                So as our code
                  ⽣生命的每⼀一秒都在改變
                  我們的程式碼也是如此




13年2月24⽇日星期⽇日                      2
History & Sync
                   我們正在創造歷史
                   我們需要及時同步




13年2月24⽇日星期⽇日                    3
Source                      Data                   Government

                         Share & Open
                                     代碼應該更快速的分享
                                     資料應該更透明的公開
                                     政府應該更開放的⺠民主
                http://www.ted.com/talks/clay_shirky_how_the_internet_will_one_day_transform_government.html




13年2月24⽇日星期⽇日                                                                                                  4
DVCS Rise!
                Distributed Version Control System




13年2月24⽇日星期⽇日                                        5
Branching should be
                      FREE!


13年2月24⽇日星期⽇日                         6
MacOSX                                  GitHub
                           Linux            Free
                XCode                              BitBucket

                       Why I love GIT
                        SourceTree
                                             OpenSource
                DVCS                 Fast



13年2月24⽇日星期⽇日                                                  7
How u work alone
                                  Let’s see the demo
                http://pcottle.github.com/learnGitBranching/?demo

        git add/rebase -i             git reset/revert
        git commit --amend            git cherry-pick
        git checkout/branch


13年2月24⽇日星期⽇日                                                       8
A Practice of workflow
                                 Git Flow
                   http://ihower.tw/blog/archives/5140/




13年2月24⽇日星期⽇日                                             9
Merge sucks
                you may love rebase, but...
                 There’re always conflicts

                     git mergetool




13年2月24⽇日星期⽇日                                 10
Push-Pull for remote
                     Let’s see the GitHub




13年2月24⽇日星期⽇日                               11
Hybrid
                                Central + Distributed
                                p4+git, hg+git, svn+git
                https://git.wiki.kernel.org/index.php/Git-p4_Usage
                  https://github.com/git/git/blob/master/git-p4.py




13年2月24⽇日星期⽇日                                                        12
UI?!
                           gitk might help,
                   but you can barely live with it...

                http://git-scm.com/downloads/guis




13年2月24⽇日星期⽇日                                           13
SubModule
                                I got to say...
                   It makes 3rd party tools together well.


                http://josephjiang.com/entry.php?id=342



13年2月24⽇日星期⽇日                                                14
Patch
                 Hotfix is for killing bug
                    not for history
                  急救包就是要除蟲
                   不是要留下痕跡

                git format-patch
                      git apply


13年2月24⽇日星期⽇日                               15
We all love hack
                      Hooks




13年2月24⽇日星期⽇日                      16
Hosting
                gitolite+gitweb, gitlab




13年2月24⽇日星期⽇日                             17
HG v.s. GIT
                 hg add remove == git add -A ???
                               球球~
                     http://blog.twpug.org/416




13年2月24⽇日星期⽇日                                      18
Yeah...
                You are a geek if you love GIT.
                        A geek of life.
                        Like Zack did.




13年2月24⽇日星期⽇日                                     19

Git=geek?

  • 1.
    Git = Geek? Eric Hsu 13年2月24⽇日星期⽇日 1
  • 2.
    Life is changing So as our code ⽣生命的每⼀一秒都在改變 我們的程式碼也是如此 13年2月24⽇日星期⽇日 2
  • 3.
    History & Sync 我們正在創造歷史 我們需要及時同步 13年2月24⽇日星期⽇日 3
  • 4.
    Source Data Government Share & Open 代碼應該更快速的分享 資料應該更透明的公開 政府應該更開放的⺠民主 http://www.ted.com/talks/clay_shirky_how_the_internet_will_one_day_transform_government.html 13年2月24⽇日星期⽇日 4
  • 5.
    DVCS Rise! Distributed Version Control System 13年2月24⽇日星期⽇日 5
  • 6.
    Branching should be FREE! 13年2月24⽇日星期⽇日 6
  • 7.
    MacOSX GitHub Linux Free XCode BitBucket Why I love GIT SourceTree OpenSource DVCS Fast 13年2月24⽇日星期⽇日 7
  • 8.
    How u workalone Let’s see the demo http://pcottle.github.com/learnGitBranching/?demo git add/rebase -i git reset/revert git commit --amend git cherry-pick git checkout/branch 13年2月24⽇日星期⽇日 8
  • 9.
    A Practice ofworkflow Git Flow http://ihower.tw/blog/archives/5140/ 13年2月24⽇日星期⽇日 9
  • 10.
    Merge sucks you may love rebase, but... There’re always conflicts git mergetool 13年2月24⽇日星期⽇日 10
  • 11.
    Push-Pull for remote Let’s see the GitHub 13年2月24⽇日星期⽇日 11
  • 12.
    Hybrid Central + Distributed p4+git, hg+git, svn+git https://git.wiki.kernel.org/index.php/Git-p4_Usage https://github.com/git/git/blob/master/git-p4.py 13年2月24⽇日星期⽇日 12
  • 13.
    UI?! gitk might help, but you can barely live with it... http://git-scm.com/downloads/guis 13年2月24⽇日星期⽇日 13
  • 14.
    SubModule I got to say... It makes 3rd party tools together well. http://josephjiang.com/entry.php?id=342 13年2月24⽇日星期⽇日 14
  • 15.
    Patch Hotfix is for killing bug not for history 急救包就是要除蟲 不是要留下痕跡 git format-patch git apply 13年2月24⽇日星期⽇日 15
  • 16.
    We all lovehack Hooks 13年2月24⽇日星期⽇日 16
  • 17.
    Hosting gitolite+gitweb, gitlab 13年2月24⽇日星期⽇日 17
  • 18.
    HG v.s. GIT hg add remove == git add -A ??? 球球~ http://blog.twpug.org/416 13年2月24⽇日星期⽇日 18
  • 19.
    Yeah... You are a geek if you love GIT. A geek of life. Like Zack did. 13年2月24⽇日星期⽇日 19