Mercurial 版本管理系統與 Google Code 網路服務
Mercurial簡介安裝使用log 紀錄指令網路服務訊息相關網站參考文獻最新修改簡體版English |
簡介在 Google Code 上提供了兩種版本管理軟體,第一種是集中式的 SVN (SubVersion),第二種是分散式的 Mercurial (Hg),本文使用 Mercurial 進行示範。 向 Google 申請專案首先您必須先向 Google 申請一個專案,以下是筆者的申請過程,請參考。 1. 進入 Google Code ![]() 2. 點選專案託管 ![]() 3. 點選貢獻開放原始碼 ![]() 4. 建立專案並填入基本資料 ![]() 5. 專案建立完成 ![]() 6. 點選 source,看看專案網址與下載指令 ![]() 7. 點選 GoogleCode.com password 看看專案密碼 ![]() 將 Mercurial 的專案上傳到 Google Code
上傳成功後您可以用瀏覽器在 Google Code 的專案網址上,看看上傳的檔案,確認是否已經全部都上完畢了,以下是筆者上傳後的檔案清單畫面。 ![]() 從 Google Code 下載 Mercurial 專案一但您成功的將 Mercurial 專案上傳 (push) 到 Google Code 上,當然就可以透過 Mercurial 的 clone 指令將該專案下載到另一個專案中,以下是筆者將 ss0 專案下載到 ss0clone 的過程。
結語只要您會使用 Mercurial,那麼上傳到 Google Code 是非常簡單的,只要使用 hg push https://<project>.googlecode.com/hg/ 的動作,然後輸入 google 的帳號與該專案的專屬密碼,即可完成將專案上傳到 google code 的動作。 然後,您可以使用 hg clone https://<project>.googlecode.com/hg/ <toProject> 的指令,將該專案下載到 <toProject> 專案中,繼續進行程式開發的動作。 |
page revision: 2, last edited: 31 Oct 2010 00:08
Post preview:
Close preview