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
Git Workshop
Search
johnbenz
August 16, 2013
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git Workshop
Support slides from my workshop at Code Oasis Ltd, Herzelyah
johnbenz
August 16, 2013
More Decks by johnbenz
See All by johnbenz
Symfony Israel: Introduction
johnbenz
0
69
Other Decks in Programming
See All in Programming
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
すこし踏み込む CancellationToken
htkym
2
1.7k
Domain-Driven Transformation
hschwentner
2
2.3k
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
AWSに止められる覚悟してますか?
morizo_1984
2
530
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
270
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
SREの越境 / SRE Collaboration
y0hgi
2
310
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
450
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Paper Plane
katiecoart
PRO
5
54k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Facilitating Awesome Meetings
lara
57
7.2k
Odyssey Design
rkendrick25
PRO
2
870
Transcript
Git Jonathan Bensaid
Git Model
Just Snapshots
The 3 states
Branches are pointers
Branches are pointers
Branches are pointers
What can we learn? • Each commit contains the entire
project • Branches are cheap to use • If we delete a branch we don’t loose anything!!!
Git Commands
• History with git log • Undoing things (reset, revert,
reflog) • Branches • Tags • Remote
Merge and Rebase
Merge
Merge
Rebase
Fast Forward
Demo • 1 Merge • 1 Rebase • 1 Fast
Forward
Flows
Git Flow
Git Flow • Standard • Tested • Complete • Overkill
@couac flow
@couac flow • Inspired from Github flow • Simple •
Adapted to small/medium teams (20 persons in github)
Team standards • PSR1 and PSR2 • Always one line
at the end of the file • Endlines: • linux/mac: core.autocrlf = input • window: core.autocrlf = true
Trailing whitespaces are evil, don’t commit evil to your repo
Trailing whitespaces are evil!
Trailing whitespaces are evil!
Team Standards • Don’t merge every time you pull a
branch... • Give useful comments to your commits • Fix bug • Name of the file
Resources • http://git-scm.com/book • http://scottchacon.com • http://williamdurand.fr/2012/01/17/ my-git-branching-model/ • https://help.github.com
• http://codeimpossible.com/ 2012/04/02/Trailing-whitespace-is-
Bonus • http://pages.github.com • http://jekyllbootstrap.com • fork me on github!