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
160
0
Share
[Sokoos][教育訓練] Git - 1
第一次教授Git
HeChien Hsu
September 04, 2013
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
49
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
170
[Wheel Lab #2] Apple Service with Rails.
hechien
0
88
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
120
[作業] 創意美學
hechien
0
62
[教育訓練] Rails Form Basic
hechien
1
79
[教育訓練] Rails Validation Basic
hechien
1
89
Rails Layout Basic
hechien
2
130
Other Decks in Technology
See All in Technology
Claude Code を安全に使おう勉強会 / Claude Code Security Basics
masahirokawahara
12
36k
260422_Sansan_Tech_Talk__関西_vol.3_データ活用のリアル__矢田__.pdf
sansantech
PRO
0
120
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
320
Practical TypeProf: Lessons from Analyzing Optcarrot
mame
0
950
Route 53 Global Resolver で高額課金発生!
otanikohei2023
0
120
Agents CLI と Gemini Enterprise Agent Platform で マルチエージェント開発が楽しくなる!
kaz1437
0
140
クラウドネイティブな開発 ~ 認知負荷に立ち向かうためのコンテナ活用
literalice
0
150
AI時代における技術的負債への取り組み
codenote
1
1.7k
No Types Needed, Just Callable Method Check
dak2
1
1.7k
音声言語モデル手法に関する発表の紹介
kzinmr
0
130
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
760
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
140
Featured
See All Featured
From π to Pie charts
rasagy
0
170
Scaling GitHub
holman
464
140k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
280
The Curse of the Amulet
leimatthew05
1
11k
Building Applications with DynamoDB
mza
96
7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Code Review Best Practice
trishagee
74
20k
How to Ace a Technical Interview
jacobian
281
24k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
280
The Curious Case for Waylosing
cassininazir
0
310
The untapped power of vector embeddings
frankvandijk
2
1.7k
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