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
HeChien Hsu
September 04, 2013
Technology
0
150
[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
47
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
170
[Wheel Lab #2] Apple Service with Rails.
hechien
0
82
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
120
[作業] 創意美學
hechien
0
60
[教育訓練] Rails Form Basic
hechien
1
76
[教育訓練] Rails Validation Basic
hechien
1
84
Rails Layout Basic
hechien
2
120
Other Decks in Technology
See All in Technology
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
260
Agent Skils
dip_tech
PRO
0
130
OpenShiftでllm-dを動かそう!
jpishikawa
0
140
配列に見る bash と zsh の違い
kazzpapa3
3
170
pool.ntp.orgに ⾃宅サーバーで 参加してみたら...
tanyorg
0
570
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
770
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
330
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
570
ランサムウェア対策としてのpnpm導入のススメ
ishikawa_satoru
0
220
Red Hat OpenStack Services on OpenShift
tamemiya
0
130
Cloud Runでコロプラが挑む 生成AI×ゲーム『神魔狩りのツクヨミ』の裏側
colopl
0
140
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
840
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
650
How GitHub (no longer) Works
holman
316
140k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
170
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
How STYLIGHT went responsive
nonsquared
100
6k
The Curious Case for Waylosing
cassininazir
0
240
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
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