SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie Git=geek?

Code review on github training ( intermediate )
Code review on github training ( intermediate )Code review on github training ( intermediate )
Code review on github training ( intermediate )JS Lee
 
Code review on github training ( beginner )
Code review on github training ( beginner )Code review on github training ( beginner )
Code review on github training ( beginner )JS Lee
 
Git 入门实战
Git 入门实战Git 入门实战
Git 入门实战icy leaf
 
Example my hdl
Example my hdlExample my hdl
Example my hdlsean chen
 
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional ChineseTortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional ChineseInfobio@YM
 
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益ericpi Bi
 

Ähnlich wie Git=geek? (8)

Code review on github training ( intermediate )
Code review on github training ( intermediate )Code review on github training ( intermediate )
Code review on github training ( intermediate )
 
Code review on github training ( beginner )
Code review on github training ( beginner )Code review on github training ( beginner )
Code review on github training ( beginner )
 
Git基础
Git基础Git基础
Git基础
 
Git 入门实战
Git 入门实战Git 入门实战
Git 入门实战
 
Cocoapods
CocoapodsCocoapods
Cocoapods
 
Example my hdl
Example my hdlExample my hdl
Example my hdl
 
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional ChineseTortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
 
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益
KSDG web course #1 - git: 從零開始 - 如何利用版本控制提升網站開發團隊效益
 

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 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
  • 9. A Practice of workflow 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 love hack 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