使用者工具

網站工具


service:git

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
service:git [2010/04/06 12:15]
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]]
  
-Linus Torvalds on git: http://​people.debian.org.tw/​~chihchun/​2008/​12/​19/​linus-torvalds-on-git/​ +===== Reference ===== 
- +  * http://git-scm.com/ 
-Git - SVN Crash Course: http://​git-scm.com/​course/​svn.html +  * https://​git.wiki.kernel.org/​index.php/​Main_Page 
- +  * [[http://​gitref.org/​|Git Reference]] 
-Why Git is Better than X: http://​zh-tw.whygitisbetterthanx.com/​+  * [[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]]
  
 ===== 安裝 ===== ===== 安裝 =====
行 19: 行 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 =====
行 28: 行 70:
  
 Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface. 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
 +
service/git.1270527331.txt.gz · 上一次變更: 2010/04/06 12:15 由 wenpei