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

Git Basics

Git Basics

The basics of Git presented at the Git Virtual Summit (http://www.phparch.com/phparchitect-live-presents-the-virtual-git-summit/)

David Coallier

February 01, 2012
Tweet

More Decks by David Coallier

Other Decks in Technology

Transcript

  1. Get on your HEAD $ git commit -m “Added file.”

    @davidcoallier - Virtual Git Summit 2012
  2. Remotes $ git remote add <name> <url> $ git push

    <name>/master @davidcoallier - Virtual Git Summit 2012
  3. Replace All $ git fetch origin $ git reset --hard

    origin/master @davidcoallier - Virtual Git Summit 2012
  4. You can now init, add, commit, push, branch, manage remotes,

    push to remote, reset hard. @davidcoallier - Virtual Git Summit 2012
  5. Too lazy! All I want is to contribute to open

    source. @davidcoallier - Virtual Git Summit 2012