Git: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
* add (filename) : stages a change
* add (filename) : stages a change
* reset (filename) : Unstages a change
* reset (filename) : Unstages a change
* commit : commit staged changes
** -m ("comment")


== Concepts ==
== Concepts ==

Revision as of 16:17, 6 June 2013

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")

Concepts

Stage

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