Git: Difference between revisions
Jump to navigation
Jump to search
Adamcolton (talk | contribs) No edit summary |
Adamcolton (talk | contribs) No edit summary |
||
| Line 9: | Line 9: | ||
* log : shows the history of the repository | * log : shows the history of the repository | ||
* checkout (id) | * checkout (id) | ||
** checkout master : returns to the latest changes | |||
== Concepts == | == Concepts == | ||
Revision as of 17:50, 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)
- checkout master : returns to the latest changes
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.