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
Introduction to Version Control
Search
Frederick Cheung
April 20, 2013
Technology
0
71
Introduction to Version Control
Lightning talk on version control from Rails Girls London.
Frederick Cheung
April 20, 2013
Tweet
Share
More Decks by Frederick Cheung
See All by Frederick Cheung
how_to_ab_test_with_confidence_railsconf.pdf
fcheung
0
51
Fixing Performance and Memory Problems (RubyWine)
fcheung
0
49
Fixing Performance and Memory Problems
fcheung
2
470
Asking questions
fcheung
0
47
Extending Ruby
fcheung
1
430
Other Decks in Technology
See All in Technology
Java x Spring Boot Warm up
kazu_kichi_67
2
410
オニオンアーキテクチャで実現した 本質課題を解決する インフラ移行の実例
hryushm
13
2.5k
で、ValhallaのValue Classってどうなったの?
skrb
1
510
Data Migration on Rails
ohbarye
7
3.8k
CI/CDやテスト自動化の開発プロジェクトへの適用
megascus
3
620
30万人が利用するチャットをFirebase Realtime DatabaseからActionCableへ移行する方法
ryosk7
2
260
Measuring the Success of Developer Experience
nikokivela
1
130
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
1
430
「最高のチューニング」をしないために / hack@delta 24.10
fujiwara3
11
2.4k
内製化によるシステムモダナイゼーションの実践
kazokmr
3
530
Tokyo dbt Meetup #10 dbt Cloudユーザー会 & パネルディスカッション
dbttokyo
1
170
生成AIの活用パターンと継続的評価
asei
10
1.4k
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
167
14k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
The Language of Interfaces
destraynor
154
24k
What's new in Ruby 2.0
geeforr
342
31k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
4 Signs Your Business is Dying
shpigford
180
21k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
3
360
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
Transcript
Introduction to version control
Managing changes
• Wikipedia page history • google docs revision log •
track changes in Word
None
How does a good VCS help?
Saving our bacon • Store your code securely • Throw
away a change that doesn’t work • Find an older version that works • Find what change caused a problem
Working with others • Allow people to work together without
conflict • Avoid fragmentation of the codebase • Track who changed what, when, why
Experimenting in isolation • You don’t want to release a
half done or experimental feature • Create a copy of your codebase: a branch • When that feature is done, you merge that branch
Top tips
Lingo • You store code in a repository • You
checkout code from a repository • You commit changes back to the repository • When you commit a change you write a commit message explaining your changes
Keep commits small and focussed • Fix 1 bug •
Add 1 feature • Not all the work from 1 day
Commit messages are letters to your future self • Explain
what you are doing, and why you are doing • 1 line summary, plus longer discussion if needed
A bad commit message • Doesn’t tell you why you
made the change. • Doesn’t describe what the change was • Won’t make much sense 6 months from now Twiddle some CSS
A better commit message Fixed homepage rendering bug on firefox
16 Firefox incorrectly calculates padding when nesting a something element in a something else element.
There are many revision control systems • git, mercurial, bazaar,
svn, darcs, perforce etc. • git is the most popular in the rails community
Where to go from here • Install git! • Free
git hosting at github.com • The git book - http://git-scm.com/book • GUIs: Tower, github for mac/windows
Version control is for everyone!