Git

From Adam Colton
Revision as of 17:47, 6 June 2013 by Adamcolton (talk | contribs)
Jump to navigation Jump to search

Commands

Standards Used: these are git commands, there for they come after "git". Anything in parenthesis are arguments, the parenthesis are not included. Anything after : is an explanation.

  • status : shows unstaged changes
  • add (filename) : stages a change
  • reset (filename) : Unstages a change
  • commit : commit staged changes
    • -m ("comment")
  • log : shows the history of the repository

Concepts

Repository

The Git representation of a

Stage

Changes are made locally, staged and then committed. Staging is the process of preparing part (or all) of your change to be commited.