Others - 建立從GitHub裡面抓取專案
因為國外的demo 大部份都是放在github上面,所以就要寫一下怎麼使用.
這裡要抱歉一下,我可能不會像以前一樣,一步一步教,因為這個部落格不叫做Christina 的 GitHub, 如果你去google 一下,就可以找到像山一樣多的強人寫的教學.
1. 請到 GitHub 註冊一個帳戶. 然後依照你的OS去安裝與設定
Mac setup git Windows setup git Linux setup
2. 安裝完之後,首先,先到某個你想要建立GitHub 儲存庫的Folder路徑 ,然後打入:
Christina:jbossdemo christina$ git init Initialized empty Git repository in /xxx/christina/jbossdemo/.git/
就可以去教學的連結去抓專案下來了, 我的習慣是去每個地方先複製一份下來到我的 local之後,才從Eclipse 去指他 (這是跑Demo的時候拉,如果你是專案開發,請直接就從你的repository裡面import 就好!)
它的指令很簡單,就是git clone 你的repository 位置
Christina:jbossdemo christina$ git clone git://github.com/weimeilin79/xxx-project.git
3. 之後就可以打開JBoss Developer Studio了,首先,因為GitHub的 plugin不是內建安裝的,所以要先去 Help的 Install New software
4. 選擇JBoss Developer Studio 5.0 Updates, 在搜尋欄位打 git 選擇 EGit 安裝.