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 for the Uninitiated
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Matthew McCullough
February 18, 2013
Programming
1
370
Git for the Uninitiated
A presentation delivered by Matthew McCullough at DevNexus 2013 in Atlanta, GA, USA.
Matthew McCullough
February 18, 2013
Tweet
Share
More Decks by Matthew McCullough
See All by Matthew McCullough
Patterns for Collaborative Software Development in a Social World at JavaOne 2015
matthewmccullough
1
410
Collaborative Software Development in a Social World at the Utah JUG
matthewmccullough
2
180
Git and GitHub Platform Review
matthewmccullough
1
560
Your First Pull Request
matthewmccullough
0
340
Git and GitHub Workflows at the Utah JUG
matthewmccullough
1
850
Agile-ish life at GitHub
matthewmccullough
2
420
Git and GitHub Agile Workflows for HP
matthewmccullough
0
340
Writing Tools on the GitHub Platform
matthewmccullough
0
300
Git Feature Branches as an Art
matthewmccullough
0
200
Other Decks in Programming
See All in Programming
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
150
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.4k
KagglerがMixSeekを触ってみた
morim
0
260
Java 21/25 Virtual Threads 소개
debop
0
270
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
3.2k
ファインチューニングせずメインコンペを解く方法
pokutuna
0
170
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
240
存在論的プログラミング: 時間と存在を記述する
koriym
4
470
20260228_JAWS_Beginner_Kansai
takuyay0ne
5
610
20260320登壇資料
pharct
0
120
The free-lunch guide to idea circularity
hollycummins
0
350
AI活用のコスパを最大化する方法
ochtum
0
320
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
140
エンジニアに許された特別な時間の終わり
watany
106
240k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
250
Thoughts on Productivity
jonyablonski
75
5.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
From π to Pie charts
rasagy
0
160
Claude Code のすすめ
schroneko
67
220k
For a Future-Friendly Web
brad_frost
183
10k
Transcript
A collaborative reboot for version control GIT FOR THE UNINITIATED
Matthew.... @matthewmccull ‣Open source contributor ‣O'Reilly Git Video Co-instructor ‣Co-Author
of O'Reilly's Git book ‣5-year Git trainer ‣Instructor at GitHub
http://oreil.ly/ogitvid
http://amzn.to/oreillygit
None
None
None
None
Version Control A refreshed approach to VCS
None
Open Source
bash scripts ☛ C code
is not a slightly better
None
None
None
http://git-scm.com
Starting Up Creating a repository
Get a GitHub account.
Get a GitHub account. http://github.com/signup/free
Create a new repo(sitory).
Add a file.
View the commit history (timeline).
Make changes to the file.
Repo Creation Local and remote initialization simplicity
# Green field project $ git init newproject $ cd
newproject # ...start coding
or if you already have source code
# Legacy project tree $ cd existingproject $ git init
# Add all the code $ git add . $ git commit -m”Initial import”
‣Blob ‣Tree ‣Commit ‣Tag
tree tree: 7e8b1 web blob: 9ab16 index.html a10b3 tree blob:
8d162 logo.jpg blob: 51d22 draw.js 7e8b1 commit tree: a10b3 parent: nil author: Fird committer: Matthew message: Major refactoring of the web content. c67db blob <html> <body></body> </html> 9ab16 blob //Some more javascript var renderSize 51d22 blob 7D 8D B3 7F BD 12 9F E9 7B 78 9D 3F 5C A6 72 CB 8d162
Collaborating Two authors
Make simultaneous changes to the file.
Collaborating Redux Untrusted collaborators
Untrusted changes to the file.
Changelist Three stage thinking
Working Staging Repo add commit edit
None
‣shopping cart ‣put things in ‣take things out ‣purchase at
register
v1 v2 v3 v4 File A File B File C
File A File B File B File C v5 File A File B File B File A File A File C File C File C
Workspaces The power of simple branch toggling
Local Remote Upstream
# Creating a branch git branch <BRANCHNAME>
RELEASE_1.0 HEAD bug979branch commit c67db commit 9bd21 commit 1c2d7 commit
8c2d1 commit 1bdcd commit 2daa1
What do cheap branches enable?
‣Experimentation ‣
‣Experimentation ‣Safe experimentation
Better reuse of units of work
Work Models Enabling different development styles
product v1.0 integration story1 story2 v1.5 integration story3
Local Remote Upstream Integ Product Integ Product Integ Product
Local Remote Upstream Idea Story Feature Feature Feature Integ Product
Integ Product Integ Product
Local Remote Upstream Idea Story Feature Feature Feature Integ Product
Integ Product Integ Product
Central Repo C e n t r a l i
z e d
Blessed Repo D i c t a t o r
s h i p
Certified Repo Development Repo n t e g r a
t i o n M a n a g e d Continuous Integration Server
C u s t o m + P u b
l i c C o n t r i b Customized ☚ Private Public ☛ GitHub
Mirror Development Repo M i r r o r e
d Mirror Certified Repo
Client Apps GUIs and other front-ends
http://windows.github.com
http://windows.github.com
http://mac.github.com
http://mac.github.com
Remotes Bandwidth and geographic challenges
Local Remote Upstream
Local Remote Upstream
Local Remote Upstream
data from http://whygitisbetterthanx.com/#git-is-fast git svn Init git svn Status git
svn Diff git svn Tag git svn Log git svn Commit (Lg) git svn Commit (Sm) git c svn c Branch Speed
Local Remote Upstream commit fetch push clone clone clone push
pull pull pull
Commit Push Pull
Commit Push Pull
Commit Push Pull
Integration CI, scripting, and hooks
None
"This is so important, we can't entrust it to automation.
We need our top developer to supervise it."
continuous integration servers jenkins travis ci circleci buildhive
None
None
None
None
None
Summary The Git and GitHub ecosystem
[email protected]
github.com/training @githubtraining githubtraining Q&A
http://learn.github.com
http://teach.github.com
Why Git?
None
None
I'm an egotistical bastard, and I name all my projects
after myself. First Linux, now git. -Linus Torvalds “ Credits: Martin Streicher, http://en.wikipedia.org/wiki/File:Linus_Torvalds.jpeg
CVS Subversion PVCS Perforce Clear Case Source Safe RCS Folders
Small Footprint
Simple
Powerful
Composable
Setting Up Git
binaries on your $PATH
http://help.github.com
None
Using Git
Create a Git repository
None
http://git-scm.com/book
http://teach.github.com
http://help.github.com
Git GUIs
None
https://github.com/github/GitPad
None
http://eclipse.org/egit/
None
Using GitHub
None
‣Social coding ‣Fork and pull model
Blessed Repo
None
‣Web-based image diff ‣Lightweight issue tracking
None
None
https://enterprise.github.com
None
Q&A
@matthewmccull
[email protected]
training.github.com