Git: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
** -m ("comment")
** -m ("comment")
* log : shows the history of the repository
* log : shows the history of the repository
* checkout (id)


== Concepts ==
== Concepts ==


=== Repository ===
=== Repository ===
The Git representation of a
The Git representation of the history of a set of files in a directory tree.


=== Stage ===
=== Stage ===
Changes are made locally, staged and then committed. Staging is the process of preparing part (or all) of your change to be commited.
Changes are made locally, staged and then committed. Staging is the process of preparing part (or all) of your change to be commited.
=== Checkout ===
This is not like the MS version - you are not getting a file to edit it, you are pulling a previous version of a file.


[[Category:Code]]
[[Category:Code]]
[[Category:Notes]]
[[Category:Notes]]

Revision as of 17:48, 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")
  • log : shows the history of the repository
  • checkout (id)

Concepts

Repository

The Git representation of the history of a set of files in a directory tree.

Stage

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

Checkout

This is not like the MS version - you are not getting a file to edit it, you are pulling a previous version of a file.