Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Using Git hosting
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
HeChien Hsu
October 14, 2014
How-to & DIY
67
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Using Git hosting
HeChien Hsu
October 14, 2014
Transcript
13 slides
Using Git hosting 徐赫謙
Choices of Git hosting • Github - http://github.com • BitBucket
- http://bitbucket.org
Benefits of Git hosting • ⼈人員管控容易 - 減少管理成本 • 有眾多的
Services - 可以做到 push / pull 狀態監控、搭配⾃自動化 unit testing … 等 • ⽅方便整合 Project Management System - 可以搭配票號整理 (Ticket number) • 可以輕易處理協同開發 - SSH based 的 Git server 很難處理這⼀一塊 (即便是 Gitosis / Gitolite 也⼀一樣) • 有提供 Code Review 功能與 Branch merge 管控 - 避免產品在上線 之前就炸爛給你看 • 與部署⼯工具搭配良好 - 尤其是 Rails 的
Benefits of DIY • 免費 (不過時間成本都耗在上⾯面了)
Plans of Github
Plans of Github • Github 以 Private 專案數量進⾏行收費 • 專案數⼩小於等於
5 ,不管多少開發者,收你⼀一個 ⽉月七鎂 • 適合多開發者、專案數較少的團隊 • 注意:Private repo 是不會被別⼈人看到的
Plans of BitBucket
Plans of BitBucket • BitBucket 以開發⼈人數進⾏行收費 • 開發⼈人數⼩小於等於 10 ,不管多少
Private repo, 收你⼀一個⽉月⼗十鎂 • 適合少開發者、專案數較多的團隊 • 注意:但是有⽐比 Github 難⽤用⼀一點
How to use? • Commit Tree - 可以很清楚、簡單看到誰送了這條 commit 、
commit 內容、在 哪個 branch ,然後可以針對 commit 內某段程式碼進⾏行討論與 Code Review • Access management - 就是使⽤用者管理 • Branch management - 管理 Branch ,可以細到管理誰可以存取哪⼀一個 branch • Pull Request <= The most important • Service Hooks <= Cool things • Issues Tracking <= 不過建議使⽤用 Redmine • Wiki <= 不過建議在 Redmine 上⽤用 • HipChat <= 把 Branch update 的 E-mail 通知搬到 HipChat 上,更好⽤用
Code Review • 避免程式碼爆掉的⼀一種⼿手段 • 帶領新⼿手開發者⽤用的⼀一個好⽅方式 • 別⼈人上傳的程式碼需要被 Review ,可直接討論
Pull Request • 避免程式碼爆掉的⼀一種⼿手段 • 在程式碼準備從 develop merge 到 master
之前 先擋下來看⼀一看,討論該修改的部分後再允許進 ⾏行 merge • 適合搭配 Git flow 來開發 • 參考: http://ihower.tw/blog/archives/5140
Service Hooks • 搭配 Service Hooks 可以達到 服務整合的能⼒力 • 這部分
Github ⽐比較多 … • 最常⾒見的⽤用途是 push 上去後 ⾃自動進⾏行測試、通知 … 等等
Deploy example (using Rails) 1. git push commit to develop
branch 2. send pull request from develop to master 3. agree and merge 4. execute “cap production deploy” on local terminal 5. done
More Decks by HeChien Hsu
See All by HeChien Hsu
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
220
[Wheel Lab #2] Apple Service with Rails.
hechien
0
130
[Sokoos][教育訓練] Git - 1
hechien
0
190
[數位教學] 用Bootstrap製作網頁
hechien
0
1.4k
DesignYou - 專題報告投影片
hechien
0
160
[作業] 創意美學
hechien
0
95
[教育訓練] Rails Form Basic
hechien
1
92
[教育訓練] Rails Validation Basic
hechien
1
130
Rails Layout Basic
hechien
2
140
Other Decks in How-to & DIY
See All in How-to & DIY
JAWS-UG鹿児島2.0 reboot - JAWS-UG/AWS Communitiesのご紹介
awsjcpm
0
150
JAWS-UG/AWS Community Update 彩の国埼玉支部1周年記念
awsjcpm
1
230
EjecTea 2026 / 20260228-osc26tk-ejectea
akkiesoft
0
1.1k
JAWS/AWS Community Updates - JAWS-UG新潟 #29
awsjcpm
1
190
グローバルチームでなんとかしがみつく英語コミュニケーション
yatsu
0
130
薪と薪スト
hirashun
0
130
JAWS-UG/AWS Community Update 2026/05/25 JAWS-UG札幌 & 秋田コラボ会
awsjcpm
0
200
JAWS-UG/AWS Community Update - 2026/6/13 JAWS-UG TOHOKU 仙台
awsjcpm
0
1.3k
20261111_7年ぶりの参加!前回の反省と今回の意気込み!
riz3f7
1
120
人見知りな HUB おじさんが 会話のハードルを超え、 今度は誰かの踏み台になろうとする話/hub-guy-as-a-stepping-stone
aokiplayer
2
1.7k
家を建てて学ぶPjM
rinkei
0
300
ROSAというLLM使ったROSエージェントをおもちゃに実装してみた話
takeofuture
0
380
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
3.2k
Un-Boring Meetings
codingconduct
0
520
Balancing Empowerment & Direction
lara
6
1.4k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
580
HDC tutorial
michielstock
2
1k
The browser strikes back
jonoalderson
0
2k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Docker and Python
trallard
47
4.3k
How to build a perfect <img>
jonoalderson
1
6.3k