Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git and Github: Version control for a happier you

Git and Github: Version control for a happier you

Lightning talk for McFullStack.

0826c9e6449c9a08230ac6d40a3cde4d?s=128

Wendy Liu

April 11, 2015
Tweet

Transcript

  1. McFullStack :: April 11, 2015 version control for a happier

    you and :
  2. about me

  3. about me - Wendy Liu

  4. about me - Wendy Liu - McGill Math & Computer

    Science '14
  5. about me - Wendy Liu - McGill Math & Computer

    Science '14 - 4 years experience with Git
  6. about me - Wendy Liu - McGill Math & Computer

    Science '14 - 4 years experience with Git - @dellsystem on Twitter
  7. what is git?

  8. what is git? version control system!

  9. backup_dec_1_2012.zip backup_dec_8_2012.zip backup_dec_15_2012.zip backup_dec_22_2012.zip backup_dec_29_2012.zip backup_jan_5_2012.zip backup_jan_12_2012.zip backup_jan_19_2012.zip backup_jan_26_2012.zip

  10. None
  11. enter git.

  12. keeps track of changes enter git.

  13. keeps track of changes extremely flexible enter git.

  14. keeps track of changes extremely flexible developed by linus torvalds

    enter git.
  15. keeps track of changes extremely flexible developed by linus torvalds

    free and open source enter git.
  16. keeps track of changes extremely flexible developed by linus torvalds

    free and open source primarily command-line enter git.
  17. svn/perforce: local vs. remote comparison to other systems

  18. svn/perforce: local vs. remote hg/bzr: more control comparison to other

    systems
  19. svn/perforce: local vs. remote hg/bzr: more control cvs/rcs: no comparison

    comparison to other systems
  20. what git can do for you

  21. what git can do for you history

  22. what git can do for you history blame

  23. what git can do for you history blame better debugging

  24. what git can do for you history blame better debugging

    safe experimentation
  25. what git can do for you history blame better debugging

    safe experimentation easy deploys
  26. now: how git works

  27. repository directory on filesystem just metadata (changes) manual grouping of

    changes
  28. commit group of logically-related changes 1 or more files (add/delete/modify)

  29. staging index CHANGES I WANT IN MY NEXT COMMIT ALL

    THE OTHER CHANGES
  30. git commit -m 'test' CHANGES I WANT IN MY NEXT

    COMMIT ALL THE OTHER CHANGES a new commit, with message 'test'
  31. CHANGES I WANT IN MY NEXT COMMIT ALL THE OTHER

    CHANGES the commit with message 'test' (nothing here yet)
  32. good commit messages (not this)

  33. good commit messages bit.ly/gitcommit

  34. website what is github?

  35. website collaborative coding, via git what is github?

  36. website collaborative coding, via git (mostly) free to use what

    is github?
  37. website collaborative coding, via git (mostly) free to use major

    part of developer ecosystem (esp. OSS) what is github?
  38. what github can do for you issue-tracking remote backups access

    your files from anywhere graphical, easy-to-use UI
  39. thanks! git-scm.com/book help.github.com