Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Git and Github - a 90 Minute interactive workshop

935 views

Published on

Deck for an interactive workshop created by Bram Luyten and Ignace Deroost, @mire.

Published in: Technology
  • Be the first to comment

Git and Github - a 90 Minute interactive workshop

  1. 1. www.atmire.com + Bram Luyten Ignace Deroost
  2. 2. OUTLINE Version control and Git Interactive walkthrough Ten killer features Companies Open Source projects Under the hood
  3. 3. But first...
  4. 4. What’s the key to your professor’s next promotion? (Assuming he or she is not up for a Nobel Prize or a Fields Medal)
  5. 5. Publications
  6. 6. PUBLICATIONS Originally on paper Now largely digital Content provided by academics Reviews provided by academics
  7. 7. THE PUBLISHING INDUSTRY
  8. 8. THE PUBLISHING INDUSTRY Originally charged for shipping paper copies Now charges for digital access Private enterprise
  9. 9. OUR TAX MONEY
  10. 10. OUR TAX MONEY Pays for researchers to do research Pays for researchers providing reviews Pays publishers for access to scientific results that we funded in the first place?
  11. 11. http://www.dspace.org
  12. 12. DSPACE A free and open source web platform Used by universities and public institutions to offer free and open access to the (scientific) output they produce. @mire provides DSpace installation, support, customization and training services.
  13. 13. THE WORLD BANK https://openknowledge.worldbank.org/
  14. 14. DRYAD http://datadryad.org/
  15. 15. ENVIA http://www.envia.bl.uk/
  16. 16. WORKING FOR @MIRE Join our team of in Belgium or USA Developer and Project Manager vacancies Free snacks
  17. 17. First month on the job
  18. 18. Spot the founders
  19. 19. Bubble friday
  20. 20. Funtivities
  21. 21. Version control
  22. 22. Attribution
  23. 23. When and Why
  24. 24. Examples
  25. 25. Who
  26. 26. When
  27. 27. Why
  28. 28. Where can you find the “Why” in Google Docs?
  29. 29. WHAT ARE GIT AND GITHUB Decentralized source code management protocol Free web based software project hosting Git is used as underlying source code management protocol
  30. 30. CENTRALIZED SOURCE CODE MANAGEMENT
  31. 31. GIT: DECENTRALIZED VERSION CONTROL
  32. 32. WHAT YOU NEED TO KNOW FOR NOW Everything is local Fast Compact Clever mechanisms to “merge” changes together
  33. 33. A social webapp for managing Git repositories
  34. 34. https://github.com/fat
  35. 35. https://github.com/twitter
  36. 36. https://github.com/KULeuven-CS
  37. 37. https://github.com/ryderr/git-poetry
  38. 38. USING GIT AND GITHUB Creating an account on Github Contributing through the Github Web UI Installing Git on your laptop Using Git on Windows
  39. 39. CREATING AN ACCOUNT ON GITHUB.COM Signup on Github.com
  40. 40. FORK THE PROJECT FOR THIS WORKSHOP https://github.com/bram-atmire/aft-workshop
  41. 41. MODIFYING THE CODE IN YOUR OWN FORK Create a new branch. Do NOT work on master Ignace - update screenshot
  42. 42. EDIT README.MD Standard mode
  43. 43. EDIT README.MD Full screen mode
  44. 44. PREVIEW: OVERVIEW OF CHANGES Red line: deleted - Green line: added
  45. 45. EXERCISE Install the Mac,Windows or command line client Clone the fork of the AFT workshop repository on your local machine Edit the README.md file locally and commit Push this to your own Github repository Issue a pull request with your changes
  46. 46. SOMETHING A LITTLE MORE ADVANCED http://bit.ly/learning-git
  47. 47. Ten Killer Features
  48. 48. 1. .patch and .diff anywhere
  49. 49. 2. Press t for file finder
  50. 50. 3. Press ? for shortcuts
  51. 51. 4. Blame view
  52. 52. 5. Line based comments
  53. 53. 6. Project Stats
  54. 54. 7. Git.io web publishing
  55. 55. 8. Git based deployment
  56. 56. 9. .gitignore
  57. 57. 10. Cherry-Pick !
  58. 58. Companies
  59. 59. http://www.slideshare.net/fusion2011/github-githubgithub
  60. 60. TL;DR Firm belief in simple tools Developer freedom Working asynchronously Get rid of useless meetings
  61. 61. GOOGLE
  62. 62. PAYPAL
  63. 63. ICELANDIC LAWS
  64. 64. Branching Model
  65. 65. http://nvie.com/posts/a-successful-git-branching-model/
  66. 66. Open Source
  67. 67. OPEN SOURCE CONTRIBUTION WORKFLOW Lowering your own maintenance costs Prestige and achievement Giving & receiving community support Learn from others Fun
  68. 68. BUG TRACKING AND FEATURE REQUESTS http://jira.duraspace.org/browse/DS
  69. 69. CREATING A NEW JIRA ISSUE
  70. 70. HIGHLEVEL DSPACE GITHUB WORKFLOW “Fork” Contributor copies the DSpace code repository to his/her own Github account “Clone” Checks out a local copy of the newly created fork “Branch” Creates a branch for development work related to a particular issue in JIRA “Commit” Modifying the code locally “Publish Branch” Pushing your changes to your personal Github account
  71. 71. FINAL STEP: FIRING YOUR PULL REQUEST Done! Your code can now be evaluated for inclusion
  72. 72. AFTER FIRING THE PULL REQUEST Generally, code will be evaluated by 2 committers prior to inclusion Further discussion about your approach can follow on JIRA or in Github comments You can help the committers by doing your own evaluation on pull requests by others
  73. 73. Google Code ✝25/01/2016 Bitbucket Sourceforge GitHub OPEN SOURCE VERSION CONTROL PLATFORMS
  74. 74. GOOGLE CODE °2006 project hosting service people started moving to GitHub 2015: google migrates their own repositories to GitHub 25/01/2016: end of Google Code
  75. 75. BITBUCKET
  76. 76. SOURCEFORGE
  77. 77. TWITTER BOOTSTRAP PROJECT Bootstrap: the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. https://github.com/twbs/bootstrap
  78. 78. HOW DOES @MIRE USE GIT
  79. 79. Under The Hood
  80. 80. http://www.slideshare.net/svenpeters/getting-git-right Slide 29+
  81. 81. Want more?
  82. 82. http://think-like-a-git.net/ https://training.github.com/kit/ https://try.github.io/ https://www.codeschool.com/courses/git-real http://git-scm.com/book/en/v2
  83. 83. www.atmire.com Questions ?
  84. 84. IMAGE CREDITS https://lightandcoffee.files.wordpress.com/2012/07/keyboard-button-template.jpg https://brettwgould.files.wordpress.com/2013/10/who-did-what.jpg http://isabelrose.com/wp-content/uploads/2014/11/you-did-what-.jpg http://www.boostsuite.com/wp-content/uploads/2010/04/undo.jpg http://darkz0ne.net/wp-content/uploads/2015/03/Google-Code-wordmark.png http://www.usabilitytalking.com/wp-content/uploads/2010/06/academic-hat.jpg

×