====== Git ====== ===== Book ===== [[https://git-scm.com/book/zh-tw/v2|Pro Git]] ===== Reference ===== * http://git-scm.com/ * https://git.wiki.kernel.org/index.php/Main_Page * [[http://gitref.org/|Git Reference]] * [[http://people.debian.org.tw/~chihchun/2008/12/19/linus-torvalds-on-git/|Linus Torvalds on git]] * Git - SVN Crash Course: http://git-scm.com/course/svn.html * Why Git is Better than X: http://zh-tw.whygitisbetterthanx.com/ * [[http://www.slideshare.net/chacon/getting-git|Getting Git]] * [[http://c9s.blogspot.tw/2009/11/migrate-svn-to-git.html|Migrate svn to git]] * [[http://nvie.com/posts/a-successful-git-branching-model/|A successful Git branching model]] * [[http://wildlyinaccurate.com/a-hackers-guide-to-git/|A Hacker’s Guide to Git]] ===== 安裝 ===== http://www.qweruiop.org/nchcrails/posts/49 FreeBSD: http://blog.wu-boy.com/2009/10/05/1701/ ===== 指令教學 ===== http://plog.longwin.com.tw/my_note-unix/2009/05/19/git-learn-initial-command-2009 http://plog.longwin.com.tw/my_note-unix/2009/05/20/git-learn-test-command-2009 http://www.qweruiop.org/nchcrails/posts/49 [[https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BxOmgTw3J_P6NTIxY2NmYmQtOGJiZS00N2IzLTllMjEtYzMyNGNkYzQxMDBl&hl=en&authkey=COKa84AO|Git in a Nutshell]] [[http://note.drx.tw/2014/01/git-remove-sensitive-data.html|Git: 移除敏感資料]] ===== 設定 ===== git config --global user.name "MyName" git config --global user.email "test@test.com" ===== 建立新專案 ===== cd project/ git init . git add . git commit -m "init commit" git log git show HEAD git blame git branch git checkout -b newbranch git checkout master && git merge newbranch 遠端操作 git clone git://xxxxxx git push origin master ===== codebase ===== http://www.codebasehq.com/ ====== Mercurial ====== http://mercurial.selenic.com/ Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface. ====== Other ====== Git User's Survey 2010 summary: https://git.wiki.kernel.org/index.php/GitSurvey2010