Donʼt Lose
Your Shit
Version Control
and Backups
Why
control versions?
A IN
       AG
    ER
 EV
N
What is this
ʻversion controlʼ ?
Track.
Collaborate and version.
How does it
work ?
1. Do work
2. Save changes (commit)
3. Share changes (push)
4. Get changes (pull)
5. Experiment (branch)
6. See changes (diff)
7. Combine changes (merge)
8. Undo changes (revert)
What does using it
feel like ?
Demo
Which VCS should
I use ?
Centralized
Centralized
 sh
pu




                 pu
                  ll
           pu
      ll




            sh
     pu
Centralized


  (   CVS
      Perforce
      SourceSafe
                   )
Centralized

$ svn checkout svn://myrepo.com/trunk thing
[...do stuff...]
$ svn add path/to/file/i/added.pde
$ svn commit ...
Centralized

 svnbook.red-bean.com
          or
   Google: “svn book”
Centralized



            code.google.com
free subversion hosting for open source projects
Decentralized
Decentralized

 o rk
f                           sh                           h
               pull   p   u               ...
Decentralized


    (           )
        Mercurial
        Darcs
Decentralized


$ git clone http://myrepo.com/trunk
[...do stuff...]
$ git add .
$ git commit -m “I did stuff”
$ git push
...
Decentralized



                        github.com
social coding and free git repo hosting for open source projects
Demo
Backups: JMFB
Just Make
a Fucking
Backup
newegg.com > External hard drive > Add to cart
newegg.com > External hard drive > Add to cart




                                       320GB
newegg.com > External hard drive > Add to cart




                                 E S
                              U S
...
System Preferences > Time Machine > Giant Button
On-Site



(   Bootable?
                     )
    Carbon Copy Cloner
    Super Duper
Off-Site



         Backblaze
        Amazon S3
          Dropbox
Mail a drive to your parents
Off-Site



         Backblaze
        Amazon S3
          Dropbox
Mail a drive to your parents
Off-Site

This is for if your house burns down.
            It costs money.
In the time Iʼve spent
explaining this you
could have made a
fucking backup.
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Don't Lose Your Sh*t: Version Control and Backups
Upcoming SlideShare
Loading in...5
×

Don't Lose Your Sh*t: Version Control and Backups

833

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
833
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Don't Lose Your Sh*t: Version Control and Backups

    1. 1. Donʼt Lose Your Shit Version Control and Backups
    2. 2. Why control versions?
    3. 3. A IN AG ER EV N
    4. 4. What is this ʻversion controlʼ ?
    5. 5. Track. Collaborate and version.
    6. 6. How does it work ?
    7. 7. 1. Do work 2. Save changes (commit) 3. Share changes (push) 4. Get changes (pull)
    8. 8. 5. Experiment (branch) 6. See changes (diff) 7. Combine changes (merge) 8. Undo changes (revert)
    9. 9. What does using it feel like ?
    10. 10. Demo
    11. 11. Which VCS should I use ?
    12. 12. Centralized
    13. 13. Centralized sh pu pu ll pu ll sh pu
    14. 14. Centralized ( CVS Perforce SourceSafe )
    15. 15. Centralized $ svn checkout svn://myrepo.com/trunk thing [...do stuff...] $ svn add path/to/file/i/added.pde $ svn commit -m “I did stuff” $ svn update
    16. 16. Centralized svnbook.red-bean.com or Google: “svn book”
    17. 17. Centralized code.google.com free subversion hosting for open source projects
    18. 18. Decentralized
    19. 19. Decentralized o rk f sh h pull p u pus h p us pu ll ll e u on p cl
    20. 20. Decentralized ( ) Mercurial Darcs
    21. 21. Decentralized $ git clone http://myrepo.com/trunk [...do stuff...] $ git add . $ git commit -m “I did stuff” $ git push $ git pull
    22. 22. Decentralized github.com social coding and free git repo hosting for open source projects
    23. 23. Demo
    24. 24. Backups: JMFB
    25. 25. Just Make a Fucking Backup
    26. 26. newegg.com > External hard drive > Add to cart
    27. 27. newegg.com > External hard drive > Add to cart 320GB
    28. 28. newegg.com > External hard drive > Add to cart E S U S X C O E 320GB N
    29. 29. System Preferences > Time Machine > Giant Button
    30. 30. On-Site ( Bootable? ) Carbon Copy Cloner Super Duper
    31. 31. Off-Site Backblaze Amazon S3 Dropbox Mail a drive to your parents
    32. 32. Off-Site Backblaze Amazon S3 Dropbox Mail a drive to your parents
    33. 33. Off-Site This is for if your house burns down. It costs money.
    34. 34. In the time Iʼve spent explaining this you could have made a fucking backup.
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×