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
140
[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
40
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
160
[Wheel Lab #2] Apple Service with Rails.
hechien
0
63
[數位教學] 用Bootstrap製作網頁
hechien
0
1.3k
DesignYou - 專題報告投影片
hechien
0
100
[作業] 創意美學
hechien
0
43
[教育訓練] Rails Form Basic
hechien
1
57
[教育訓練] Rails Validation Basic
hechien
1
68
Rails Layout Basic
hechien
2
100
Other Decks in Technology
See All in Technology
MLOpsの「壁」を乗り越える、LINEヤフーの Data Quality as Code
lycorptech_jp
PRO
5
540
生成AIの変革の時代に、直近1年で直面した課題とその解決策
ktc_wada
0
370
Building Dashboards as a Hobby
egmc
0
280
Android Target SDK 35 (Android 15) 対応の概要
akkie76
0
110
GrafanaMeetup_AmazonManagedGrafanaのアクセス制御機能とマルチテナント環境下でのアクセス制御について
daitak
0
290
VS CodeでAWSを操作しよう
smt7174
8
1.7k
私が trocco を推す理由
__allllllllez__
1
260
Microsoft Intune 勉強会 第 2 回目
tamaiyutaro
1
190
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
3
540
ルーターでプレゼンする
puhitaku
0
690
Tellus の衛星データを見てみよう #mf_fukuoka
kongmingstrap
0
230
【NW X Security JAWS#3】L3-4:AWS環境のIPv6移行に向けて知っておきたいこと
shotashiratori
0
430
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
73
8.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
19
1.7k
Designing for Performance
lara
601
67k
Fantastic passwords and where to find them - at NoRuKo
philnash
37
2.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
648
58k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Agile that works and the tools we love
rasmusluckow
325
20k
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