這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
service:git [2011/02/19 16:28] wenpei |
service:git [2016/04/21 17:59] (目前版本) sars [Book] |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Git ====== | ====== Git ====== | ||
- | http://git-scm.com/ | + | ===== Book ===== |
+ | [[https://git-scm.com/book/zh-tw/v2|Pro Git]] | ||
- | https://git.wiki.kernel.org/index.php/Main_Page | + | ===== Reference ===== |
- | + | * http://git-scm.com/ | |
- | [[http://gitref.org/|Git Reference]] | + | * 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]] | + | * [[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 | |
- | 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]] | |
- | Why Git is Better than X: http://zh-tw.whygitisbetterthanx.com/ | + | * [[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]] | ||
===== 安裝 ===== | ===== 安裝 ===== | ||
行 23: | 行 26: | ||
http://www.qweruiop.org/nchcrails/posts/49 | 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 ===== | ===== codebase ===== |