Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Sokoos][教育訓練] Git - 1
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
HeChien Hsu
September 04, 2013
Technology
0
160
[Sokoos][教育訓練] Git - 1
第一次教授Git
HeChien Hsu
September 04, 2013
Tweet
Share
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
48
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
170
[Wheel Lab #2] Apple Service with Rails.
hechien
0
86
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
120
[作業] 創意美學
hechien
0
62
[教育訓練] Rails Form Basic
hechien
1
77
[教育訓練] Rails Validation Basic
hechien
1
87
Rails Layout Basic
hechien
2
130
Other Decks in Technology
See All in Technology
TypeScript 7.0の現在地と備え方
uhyo
7
2k
A Casual Introduction to RISC-V
omasanori
0
530
モジュラモノリス導入から4年間の総括:アーキテクチャと組織の相互作用について / Architecture and Organizational Interaction
nazonohito51
3
1.4k
詳解 強化学習 / In-depth Guide to Reinforcement Learning
prinlab
0
350
20年以上続く PHP 大規模プロダクトを Kubernetes へ ── クラウド基盤刷新プロジェクトの4年間
oogfranz
PRO
0
160
Phase03_ドキュメント管理
overflowinc
0
1.3k
「コントロールの三分法」で考える「コト」への向き合い方 / phperkaigi2026
blue_goheimochi
0
130
visionOS 開発向けの MCP / Skills をつくり続けることで XR の探究と学習を最大化
karad
1
1.2k
FastMCP OAuth Proxy with Cognito
hironobuiga
3
120
エンジニアリングマネージャーの仕事
yuheinakasaka
0
120
OpenClaw を Amazon Lightsail で動かす理由
uechishingo
0
260
【Λ(らむだ)】最近のアプデ情報 / RPALT20260318
lambda
0
150
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
220
The browser strikes back
jonoalderson
0
820
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
200
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
490
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
How GitHub (no longer) Works
holman
316
150k
Unsuck your backbone
ammeep
672
58k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
240
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
110
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to make the Groovebox
asonas
2
2k
Transcript
Git 徐赫謙
Git ⼯工作區 (local) working staging repository git add files =>
git commit =>
Git local / remote local repository remote repository <= git
pull git push => <= git clone
⼯工作流程 • git init || git clone • (coding ...)
• git add files • git commit -m “message”
取消staging? • git reset • git checkout .
branch? • git branch new_branch • 可以建⽴立new_branch分⽀支 • git checkout
new_branch • 切到new_branch分⽀支 • git checkout -b another_new_branch • 建⽴立並且切到another_new_branch分⽀支
與遠端say hello • git remote add origin xxxx • git
remote add bitbucket git@bitbucket.... • git remote -v <= 可以觀看有哪些remote
push / pull • git push origin master • git
push ⺫⽬目的地 ⺫⽬目標branch • git pull origin master • git pull 來源地 來源branch
Conflict? • ⼿手動修掉錯誤,然後重新commit
最佳流程 • 先checkout到新的分⽀支 • git pull到新的分⽀支確認merge不會爛 • checkout回⾃自⼰己的⼯工作分⽀支後merge • git
push
開發流程 • master永遠是deploy-ready • 開發最後都併到develop分⽀支 • 開發都⽤用票號開分⽀支解票
名詞解釋 • branch - 分⽀支 • HEAD - current branch
操作流程範例 • http://josephj.com/entry.php?id=308 • http://ihower.tw/blog/archives/6696