Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
[Sokoos][教育訓練] Git - 1
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
HeChien Hsu
September 04, 2013
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[Sokoos][教育訓練] Git - 1
第一次教授Git
HeChien Hsu
September 04, 2013
Transcript
13 slides
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
More Decks by HeChien Hsu
See All by HeChien Hsu
Using Git hosting
hechien
0
67
[Kaohsiung Rails meetup] 國際化影片分享網站
hechien
0
220
[Wheel Lab #2] Apple Service with Rails.
hechien
0
130
[數位教學] 用Bootstrap製作網頁
hechien
0
1.4k
DesignYou - 專題報告投影片
hechien
0
160
[作業] 創意美學
hechien
0
95
[教育訓練] Rails Form Basic
hechien
1
92
[教育訓練] Rails Validation Basic
hechien
1
130
Rails Layout Basic
hechien
2
140
Other Decks in Technology
See All in Technology
データ界隈LT祭の運営のふりかえり
yoshimura_datam
0
120
技術同人誌を作る方法
yoshimura_datam
0
120
40以上のマイクロサービスを支えるKubernetes JITアクセス — 160以上の恒久RoleBindingを削減
jumpe1
0
120
AI-Ready なデータ基盤ってなに? & 新卒未経験が、いま考えていること
imuta
0
1.1k
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
380
Well, that’s weird…
csswizardry
3
270
gradle-best-practices 使ってみた
mikanichinose
0
240
Ignite 2026 Security
babaneko
0
130
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.5k
売り切りの先へ ~ IoTを組み込んだ製品が、事業を伸ばす理由と始め方
soracom
PRO
0
120
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
290
NutanixへのSSHアクセスの今後について
shadowhat
0
190
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Pragmatic Product Professional
lauravandoore
37
7.5k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
3
200
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
Google's AI Overviews - The New Search
badams
0
1.7k
How to make the Groovebox
asonas
2
2.6k
The Spectacular Lies of Maps
axbom
PRO
1
1.2k
Technical Leadership for Architectural Decision Making
baasie
4
660
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.9k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
The Curse of the Amulet
leimatthew05
4
17k
The browser strikes back
jonoalderson
0
2k