Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
45
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
170
[Wheel Lab #2] Apple Service with Rails.
hechien
0
80
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
110
[作業] 創意美學
hechien
0
57
[教育訓練] Rails Form Basic
hechien
1
74
[教育訓練] Rails Validation Basic
hechien
1
81
Rails Layout Basic
hechien
2
120
Other Decks in Technology
See All in Technology
手動から自動へ、そしてその先へ
moritamasami
0
180
私のRails開発環境
yahonda
0
180
AI/MLのマルチテナント基盤を支えるコンテナ技術
pfn
PRO
5
720
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
0
640
あなたの知らないDateのひみつ / The Secret of "Date" You Haven't known #tqrk16
expajp
0
110
Claude Code Getting Started Guide(en)
oikon48
0
140
プラットフォームエンジニアリングとは何であり、なぜプラットフォームエンジニアリングなのか
doublemarket
1
550
AI 時代のデータ戦略
na0
8
3.3k
Agents IA : la nouvelle frontière des LLMs (Tech.Rocks Summit 2025)
glaforge
0
380
履歴テーブル、今回はこう作りました 〜 Delegated Types編 〜 / How We Built Our History Table This Time — With Delegated Types
moznion
15
9.4k
Uncertainty in the LLM era - Science, more than scale
gaelvaroquaux
0
520
GitLab Duo Agent Platformで実現する“AI駆動・継続的サービス開発”と最新情報のアップデート
jeffi7
0
160
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Context Engineering - Making Every Token Count
addyosmani
9
460
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
How to Ace a Technical Interview
jacobian
280
24k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
69k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
960
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Speed Design
sergeychernyshev
33
1.4k
RailsConf 2023
tenderlove
30
1.3k
Designing for humans not robots
tammielis
254
26k
A better future with KSS
kneath
240
18k
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