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
Git Workshop
Search
johnbenz
August 16, 2013
Programming
1
110
Git Workshop
Support slides from my workshop at Code Oasis Ltd, Herzelyah
johnbenz
August 16, 2013
Tweet
Share
More Decks by johnbenz
See All by johnbenz
Symfony Israel: Introduction
johnbenz
0
68
Other Decks in Programming
See All in Programming
NetBSD+Raspberry Piで 本物のPSGを鳴らすデモを OSC駆動の7日間で作った話 / OSC2026Osaka
tsutsui
1
110
Metaprogramming isn't real, it can't hurt you
okuramasafumi
0
110
CSC307 Lecture 10
javiergs
PRO
1
670
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
650
Apache Iceberg V3 and migration to V3
tomtanaka
0
190
Event Storming
hschwentner
3
1.3k
AI巻き込み型コードレビューのススメ
nealle
2
1.9k
SourceGeneratorのススメ
htkym
0
210
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
490
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
dchart: charts from deck markup
ajstarks
3
1k
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
180
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
180
Building AI with AI
inesmontani
PRO
1
720
Claude Code のすすめ
schroneko
67
210k
From π to Pie charts
rasagy
0
130
Leo the Paperboy
mayatellez
4
1.4k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
140
We Are The Robots
honzajavorek
0
170
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
67
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
110
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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!