Your SlideShare is downloading. ×
0
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
TortoiseGit Intro in Traditional Chinese
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

TortoiseGit Intro in Traditional Chinese

13,057

Published on

Published in: Self Improvement
1 Comment
7 Likes
Statistics
Notes
No Downloads
Views
Total Views
13,057
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
238
Comments
1
Likes
7
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 簡介:如何安裝及使用TortoiseGit<br />以使用gitosis repository為例<br />此slides 採 Creative Commons:姓名標示─相同方式分享 授權釋出<br />2010年2月2 日, by Jason8301 atgmail<br />
  • 2. 注意事項<br />此投影片主要用意在最短時間內設定出可push到遠端repository的TortoiseGit<br />此投影片不包含:<br />什麼是git<br />如何設定遠端git repository<br />此投影片產出時間在2010/2/2, 若距離時間太久可能所用的軟體會有差異<br />
  • 3. 大綱<br />安裝msisgit及TortoiseGit<br />連線至read-only Public repository<br />連線至ssh+git repository<br />產生ssh key<br />設定TortoiseGit<br />Git的簡易使用流程<br />
  • 4. 1. 安裝(1)<br />msysgit: 在Windows上運行Git的環境(必要步驟)<br />網址:http://code.google.com/p/msysgit/<br />無腦安裝法即可完成<br />
  • 5. TortoiseGit: 在Windows檔案總管中整合git<br />網址: http://code.google.com/p/tortoisegit/<br />1. 安裝(2)<br />請注意您是32 or 64 bit<br />無腦安裝法即可完成<br />重開機<br />
  • 6. 2. 連線至read-only Public repository(1)<br />先開一個空白資料夾<br />
  • 7. 2. 連線至read-only Public repository(2)<br />按右鍵 或是 檔案 -&amp;gt; Git Clone…<br />
  • 8. 2. 連線至read-only Public repository(3)<br />填入url (在此以TortoiseGit的repository為例)<br />按下OK就會開始從遠端抓回資料<br />
  • 9. 2. 連線至read-only Public repository(4)<br />抓完後就會看到資料夾裡面多個TortoiseGit資料夾,也就代表安裝ok啦!<br />
  • 10. 但是…<br />一般git://或http://可能不提供push的權限<br />你可能希望自己的remote repo只有認可的人才能push,且過程是加密的<br />解決方式: 使用ssh + git的方式(by Gitosis)<br />Note: 以Gitosis架設repo的方式請自行google, 礙於篇幅不贅訴<br />
  • 11. 不可用PuTTYgen產生ssh key pair<br />開啟Git Bash(在安裝msysgit時已裝好)<br />3. 連線至ssh+git repository1產生ssh key pair<br />輸入” ssh-keygen “, 按enter<br />請不要更改儲存位置<br />輸入passphrase<br />再輸入passphrase<br />公私鑰都存在使用者的.ssh資料夾中<br />Public key(id_rsa.pub)請e-mail傳給Repo 管理員<br />
  • 12. 用PuTTYgen (在安裝TortoiseGit時已裝好)修改私鑰<br />3. 連線至ssh+git repository1產生ssh key pair<br />1.<br />按”Load” 讀取id_rsa (私鑰)位於C:Documents and Settingsuser.ssh<br />按”save private key”將私鑰另存成.ppk格式<br />2.<br />
  • 13. 等管理員設定好後向管理員索取Url<br />3. 連線至ssh+git repository2設定TortoiseGit<br />記得指定剛剛用PuTTYgen產生的私鑰(.ppk)<br />
  • 14. 3. 連線至ssh+git repository2設定TortoiseGit<br />等clone好後就可以開始使用啦!<br />
  • 15. 4. Git的簡易使用流程<br />Git的使用順序<br />新增/修改<br />把修改增加到Git的暫存區<br />Git add<br />commit<br />Git commit<br />推送至remote repo<br />Git push<br />
  • 16. 4. Git的簡易使用流程<br />1. 新增/ 修改檔案<br />
  • 17. 4. Git的簡易使用流程<br />2. 把修改新增至Git暫存區<br />4. 檢查有沒有遺漏<br />5.<br />3.<br />1. 在檔案或是資料夾空白處按右鍵<br />完成!<br />2.<br />
  • 18. 4. Git的簡易使用流程<br />3. commit <br />1. 輸入commit message(例如:修改檔案x, 新增功能y) <br />修改過有進入暫存區<br />圖示會變<br />2. 檢查有沒有遺漏/多出<br />完成!<br />
  • 19. 4. Git的簡易使用流程<br />4. 推送至remote repo, 即可讓別人抓取<br />若沒有更改branch則可以不用修改<br />Origin一般就是指當初抓取下來的repo<br />已在本地端Commit過圖示會變回來<br />
  • 20. 想了解更多….<br />一小時內搞懂Git(推薦, by Scott Chacon)http://people.debian.org.tw/~chihchun/2009/01/05/understand-git-in-one-hour/<br />GitCast – 有許多英文幻燈秀, by Scott Chaconhttp://www.gitcasts.com/<br />Git官方網站(含初學者範例)http://git-scm.com/<br />Git中文教程(簡中)http://www.bitsun.com/documents/gittutorcn.htm<br />Git相較於其他SCM的優點http://zh-tw.whygitisbetterthanx.com/<br />
  • 21. 祝使用愉快!!<br />此slides 以 Creative Commons:姓名標示─相同方式分享 釋出<br />2010年2月5 日, by Jason8301 atgmail<br />

×