Why SCM?
FTP sucks
Mail sucks
Dropbox sucks
USB drive sucks
We NEED to share code!
...and...
Slide 9
Slide 9 text
Why SCM?
FTP sucks
Mail sucks
Dropbox sucks
USB drive sucks
We NEED to share code!
...and...
So?
Slide 10
Slide 10 text
Why SCM?
Which SCM?
Slide 11
Slide 11 text
Which SCM?
CVS is a history
SVN is centralized
Mercurial can’t rebase
...
Today, we NEED to:
...and...
be independant
be productive
work offline
have backup
grow
Slide 12
Slide 12 text
Which SCM?
CVS is a history
SVN is centralized
Mercurial can’t rebase
...
Today, we NEED to:
...and...
So?
be independant
be productive
work offline
have backup
grow
Slide 13
Slide 13 text
No content
Slide 14
Slide 14 text
Distributed SCM
By geeks around Linux Kernel
The most powerful SCM out there
Slide 15
Slide 15 text
Tools Ecosystem
Submodules
GitHub
Rebase
Cherry-pick
Stash
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Local
Slide 27
Slide 27 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Local
Slide 28
Slide 28 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
Remote
Local
Slide 29
Slide 29 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
Remote
Local
Slide 30
Slide 30 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add
Remote
Local
Slide 31
Slide 31 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add
Remote
Local
Slide 32
Slide 32 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit
Remote
Local
Slide 33
Slide 33 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit
Remote
Local
Slide 34
Slide 34 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
Remote
Local
Slide 35
Slide 35 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
Remote
Local
Slide 36
Slide 36 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
Remote
Local
Slide 37
Slide 37 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
Remote
Local
Slide 38
Slide 38 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
merge
Remote
Local
Slide 39
Slide 39 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
merge
Remote
Local
Slide 40
Slide 40 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
pull or rebase
merge
Remote
Local
Slide 41
Slide 41 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
pull or rebase
merge
Remote
Local
Slide 42
Slide 42 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
Slide 43
Slide 43 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add commit push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
Slide 44
Slide 44 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
add
remove
commit push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
Slide 45
Slide 45 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
remove
push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
add commit
Slide 46
Slide 46 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
remove
push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
add commit
commit -a
Slide 47
Slide 47 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
remove
push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
add
commit
commit -a
add -A
Slide 48
Slide 48 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
remove
push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
add
commit
commit -a
add -A
?
Slide 49
Slide 49 text
Workflow
Working
Copy
Index
(stage)
Local
Repo
Remote
Repo
remove
push
fetch
pull or rebase
checkout HEAD
merge
Remote
Local
add
commit
commit -a
add -A
?
status
Slide 50
Slide 50 text
Creation (in code)
git clone [email protected]/foo.git foo_dir
cd foo_dir
Local Repo
mkdir foo_dir
cd foo_dir
git init
...or...
Slide 51
Slide 51 text
Creation (in code)
git clone [email protected]/foo.git foo_dir
cd foo_dir
Local Repo
mkdir foo_dir
cd foo_dir
git init
...or...
clone url
Slide 52
Slide 52 text
Creation (in code)
Remote Repo
mkdir foo.git
cd foo.git
git init --bare
Slide 53
Slide 53 text
Workflow (in code)
git add -a
git commit -m “Updated foo class”
git push
Slide 54
Slide 54 text
Workflow (in code)
git add -a
git commit -m “Updated foo class”
git push