1 / 38

Introduction to Git and Github – A Hands-on Course

Introduction to Git and Github – A Hands-on Course. Class 3: GitHub Hands-On, Part 1. November 16, 2016 Charles J. Lord, PE President, Consultant, Trainer Blue Ridge Advanced Design and Automation. This Week’s Agenda.

cstrasser
Download Presentation

Introduction to Git and Github – A Hands-on Course

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Git and Github – A Hands-on Course Class 3: GitHub Hands-On, Part 1 November 16, 2016 Charles J. Lord, PEPresident, Consultant, TrainerBlue Ridge Advanced Design and Automation

  2. This Week’s Agenda 11/14 Intro to Version Control and Code Collaboration11/15 Basic Git Concepts 11/16 GitHub Hands-On, Part 1 11/17 GitHub Hands-On, Part 2 11/18Local Clients and Other Hosts

  3. This Week’s Agenda 11/14 Intro to Version Control and Code Collaboration11/15 Basic Git Concepts 11/16 GitHub Hands-On, Part 1 11/17 GitHub Hands-On, Part 2 11/18Local Clients and Other Hosts

  4. Taking Git to the Masses • Yesterday, we looked at Git and a local installation along with a local GUI interface • But what about sharing? We need a hosted Git implementation that all of our team members can access – and perhaps other developers worldwide • That is where GitHub comes in.

  5. GitHub • Online repository launched in April 2008 by Tom Preston-Werner, Chris Wanstrath, and PJ Hyett • Offers free public and for-fee private repositories • One must be a member to contribute, but anyone can browse and download forks • 14+ million users and 35+ million repositories

  6. More Than Just Git • GitHub includes discussion areas and a wiki for each project • Also has bug tracking, feature requests, and task / project management for every project • As we saw before, a critical element of Git is the license file(s) for each project. As much of what is found in the public areas is SOUP (Source Of Unknown Pedigree), it is important to check any software you wish to use.

  7. Other Interesting Features • One can subscribe to a project in order to be notified of future modifications or discussion on that project • Can even create web pages for each project and for the user or organization pagee.g. https://cjlord.github.io/ • So Let’s Git Started!

  8. Go to github.com, Sign up!

  9. Choose free account

  10. This is optional

  11. We have a blank account!

  12. This is a good start

  13. Let’s create a new repository

  14. Naming it Hello_world

  15. Let’s Add a File!

  16. We don’t normally do this but we can!

  17. Scroll down, let’s commit to Master

  18. We now have a tiny bit of code

  19. Click to create a new branch

  20. Click on main.c

  21. Click on the pencil

  22. Now We Can Edit

  23. Modify “Hello” to “Bonjour”

  24. Scroll down and commit

  25. Our Branch is Complete

  26. Click on Pull Request

  27. We can comment and even assign

  28. Now we receive our own pull request – and can accept

  29. Agree to Merge

  30. Click on Files Changed

  31. Here we can comment, approve, or send back

  32. There is also a split view

  33. Confirm and close

  34. Now we can delete the branch

  35. Our log of changes

  36. That’s the basics • We have now created and modified a repository, created a branch, committed it back, and created a pull request. We approved the pull request and have gone through the manual update of code. • Tomorrow we look at what else we can do with GitHub – which is a LOT.

  37. This Week’s Agenda 11/14 Intro to Version Control and Code Collaboration11/15 Basic Git Concepts 11/16 GitHub Hands-On, Part 1 11/17 GitHub Hands-On, Part 2 11/18Local Clients and Other Hosts

  38. Please stick around as I answer your questions! • Please give me a moment to scroll back through the chat window to find your questions • I will stay on chat as long as it takes to answer! • I am available to answer simple questions or to consult (or offer in-house training for your company)c.j.lord@ieee.orghttp://www.blueridgetechnc.comhttp://www.linkedin.com/in/charleslordTwitter: @charleslord

More Related