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

Working with Git and GitHub

Working with Git and GitHub

An introduction to source control with Git and project collaboration using GitHub, from a presentation to Refresh DC on 2013 - 03 - 21. The slides were accompanied by live demos.

Matt Yoho

March 21, 2013
Tweet

More Decks by Matt Yoho

Other Decks in Programming

Transcript

  1. 1. Create some files. 2. Save some files. 3. Edit

    some files. 4. Save them again.
  2. 1. Create some files. 2. Save some files. 3. Edit

    some files. 4. Save them again.
  3. 1. Create some files. 2. Save some files. 3. Edit

    some files. 4. Save them again.
  4. 1. Create some files. 2. Save some files. 3. Edit

    some files. 4. Save them again.
  5. 1. Create some files. 2. Save some files. 3. Edit

    some files. 4. Save them again.
  6. Commits Commits capture the contents of a project’s files at

    a point in time. A repository contains all the commits for a project, and some other metadata.
  7. Commits Commits capture the contents of a project’s files at

    a point in time. A repository contains all the commits for a project, and some other metadata. A commit is like a savepoint.
  8. $> git init . $> git add [--all] $> git

    mv $> git commit [--amend] $> add commands
  9. $> git status $> git show $> git diff $>

    git log $> status commands
  10. $> git add -u $> git rm $> git reset

    $> git revert $> undo commands
  11. $> git remote $> git push $> git fetch $>

    git pull $> remote commands