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 a life
Search
Filippo Gangi Dino
June 23, 2017
Programming
0
180
Git a life
A simple introduction about GIT and versioning.
Filippo Gangi Dino
June 23, 2017
Tweet
Share
More Decks by Filippo Gangi Dino
See All by Filippo Gangi Dino
talk_sui_talk_WP_Meetup.pdf
mukkoo
0
140
Bug Hunt
mukkoo
0
65
Survive heisenbug in micro service architecture
mukkoo
1
53
WordFlow (WordPress WorkFlow)
mukkoo
0
54
What is git?
mukkoo
0
72
Around Angular2
mukkoo
0
70
Talk sui talk
mukkoo
1
140
Road to ES6
mukkoo
1
100
Middleman
mukkoo
0
160
Other Decks in Programming
See All in Programming
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
920
見た目から始める生産性向上
ikumatadokoro
7
830
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
260
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
200
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
0
110
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
320
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
120
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.2k
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
270
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
530
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
230
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
A designer walks into a library…
pauljervisheath
200
23k
[RailsConf 2023] Rails as a piece of cake
palkan
23
3.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
648
58k
Building Adaptive Systems
keathley
31
1.9k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
30
6k
Statistics for Hackers
jakevdp
789
220k
Git: the NoSQL Database
bkeepers
PRO
422
63k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Ruby is Unlike a Banana
tanoku
96
10k
Transcript
GIT A LIFE
@MUKKOO
@mukkoo
@mukkoo
@mukkoo
VErsioning @mukkoo Version Control System
Copy & Paste VCS @mukkoo project/ project_old/ project_old_old/ project_ok/ project_ok_ok/
project_ok_ok_new/ projectOK_ok_ok_new/
Centralized VCS @mukkoo CVS, Subversion, Perforce Server Repository Client Client
Client Client
Distributed VCS @mukkoo Git, Mercurial, Bazaar Hub Repository Server Server
Server Server Repository Repository Repository Repository
GIT* @mukkoo *idiot
Linus Torvalds
focus @mukkoo 1. Make the opposite of CVS (SVN) 2.
Distributed workflow 3. Safe against file corruption 4. High performance
Snapshot not DIFF @mukkoo 0 +2 +4 -3/2 DIFF: Every
commit record differences 0 2 6 1,5 SNAPSHOT: Every commit record all file tree
Three States @mukkoo Git Directory Working Directory Staging Area Untracked
Committed
WARNING!!! the hardest part is coming.
Branching @mukkoo c1 c2 master HEAD feature
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c5
c6 feature2
@mukkoo Need fix on master. NOW!
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c5
c6 feature2 c7 c8
Branching @mukkoo c1 c2 master HEAD feature c3 c4 c7
c8 c9
The Theory is Over @mukkoo Are you hungry?
Commands @mukkoo
INIT @mukkoo $ git init
status @mukkoo $ git status show the working tree status
ADD @mukkoo $ git add <args> add file to staging
area
Commit @mukkoo $ git commit -m “message” record changes
LOG @mukkoo $ git log Show commits log
checkout - - @mukkoo $ git checkout -- <file> Restore
a modified file
branch @mukkoo $ git branch <branch_name> Create a new branch
checkout @mukkoo $ git checkout <branch_name> Move to branch
merge @mukkoo $ git merge <branch_name> merge branch
DEMO TIME @mukkoo
Useful concepts @mukkoo
remotes (command and concept) fetch (command) push/pull (commands) @mukkoo Network
rebase (command) fast forward (concept) stashing (command) @mukkoo FLOW
ignoring files (.gitignore) gitk and git gui (gui tools) shortcut
and configs (.gitconfig) @mukkoo Settings and tools
Q&A @mukkoo
what does Wordpress use? @mukkoo
GIT A SLICE of pizza @mukkoo