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

Now you're gitting it

Now you're gitting it

A talk on how git & GitHub works, with a little live demo to show it all off

Avatar for Oliver Walters

Oliver Walters

March 09, 2018

Other Decks in Technology

Transcript

  1. Snapshots of your work • Snapshots are a history of

    your work • Allows others to keep up- to-date with the latest work
  2. Distributed systems • Keep track of versions without coordination •

    Editing offline doesn’t cause issues • User defined snapshots
  3. Unmodified This file is identical to the information stored in

    the current commit Staged File is ready to be committed (but can still be worked on) File States Modified There are differences between this file and the one of the same name in the current commit Untracked There is no copy of this file stored in the repository logs
  4. Basic commands • git init {repo_name} • git add {filename}

    • git reset {filename} • git commit -m “<comment>” • git status • git log
  5. Network commands • git clone {repo url} • git push

    [-u origin {branch_name}] • git fetch • git pull • git remote add origin {url}
  6. Advanced commands • git reset [--soft/hard] {commit_reference} • git tag

    [-a] {version_name} [-m “<comment>”] • git reflog
  7. Resources • Student developer pack – https://education.github.com/pack • Learn about

    git - https://git-scm.com/about/ • GitHub windows GUI - https://desktop.github.com/ • Give git and GitHub a try - https://try.github.io • How and why you should make good commit messages - https://chris.beams.io/posts/git-commit/ • If you’ve really messed up - http://ohshitgit.com/