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

Yet another introduction to git

Yet another introduction to git

Really junior introduction to git, with demonstrations.

Tevin Zhang

March 10, 2015
Tweet

More Decks by Tevin Zhang

Other Decks in Technology

Transcript

  1. Features • Small and Fast • Branching and Merging •

    Distributed • Staging Area http://git-scm.com/about
  2. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged
  3. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged git add
  4. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged Committed git add
  5. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged Committed git add git commit
  6. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a
  7. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a Revert changes
  8. File Status Life Cycle Working directory Staging area Repository Commit

    changes Stage Commit Untracked or Modified Staged Committed git add git commit git commit -a Revert changes git checkout —- <filename>