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

Collaborating with Git and GitHub - Girl Develop It Central VA

Collaborating with Git and GitHub - Girl Develop It Central VA

Slides for the Git/GitHub workshop for Girl Develop It Central VA

Steven Loria

October 01, 2018
Tweet

More Decks by Steven Loria

Other Decks in Programming

Transcript

  1. Set up 4 Create a GitHub account 4 Install and

    set up git https://help.github.com/articles/set-up-git/ 4 In Terminal or Powershell: cd ~ mkdir projects cd projects
  2. Welcome! Girl Develop It is here to provide affordable and

    accessible programs to learn software through mentorship and hands-on instruction.
  3. Some "rules" 4 We are here for you! 4 Every

    question is important 4 Help each other 4 Have fun
  4. Welcome! 4 Who are you? 4 Last meal you made?

    4 OPTIONAL: What drew you to take this class?
  5. Centralized (svn) 4 Everybody works on same copy of project

    4 Saving and sharing happen in the same step
  6. Distributed VCS (git) 4 Everybody gets a copy 4 Sync

    when you want to (merge copies) 4 Separates saving from sharing 4 Bonus: Lots of backups
  7. Remotes remote = name for a copy on GitHub Example:

    "origin" is the name of the repo you cloned from
  8. List your remotes $ git remote -v origin https://github.com/sloria/gdi-centralva-directory.git (fetch)

    origin https://github.com/sloria/gdi-centralva-directory.git (push)
  9. Remotes By convention: 4 "origin" = Your fork (sloria/gdi-centralva-directory) 4

    "upstream" = The original version (GirlDevelopItCentralVA/gdi-centralva-directory)
  10. $ git remote -v origin https://github.com/sloria/gdi-centralva-directory.git (fetch) origin https://github.com/sloria/gdi-centralva-directory.git (push)

    upstream https://github.com/GirlDevelopItCentralVA/gdi-centralva-directory.git (fetch) upstream https://github.com/GirlDevelopItCentralVA/gdi-centralva-directory.git (push)
  11. Make more changes people/steve-loria.json { "name": "Steve Loria", "twitter": "sloria1",

    "github": "sloria", "personal": "https://stevenloria.com" }
  12. Push to your Fork Get your local changes onto your

    fork on GitHub $ git push origin add-steve-json