segunda-feira, 28 de setembro de 2015

How to Use GIT

Master Repository
The place where you upload your 'Committed' files.
Local Repository
The Place on your computer where you save and work on files.
State/Revision
Basically a save file of your repository (they never have overwrite)
Commit
Stores your files to a 'state/revision' on your 'local repository'. These commits serve as nodes.
Nodes
'save files' of commits to the repository. Nodes automatically 'Branch' off of the 'Master Repository'.
Branch
Both a verb and a noun, referring how GIT branches off 'nodes' when users commit their files
Head
The most recent 'node' on a 'branch'
Merge
Combines 2 'branch heads' together into 1 branch (usually with the 'Master Branch')
Push
Uploads or sends all of your 'commits' to the 'Master Repository'.
Fetch
Downloads all of the 'commits' from the 'Master Repository' to your 'Local Repository'. (DOES NOT MERGE)
Pull
Downloads or 'Fetch'es all of the 'commits' from the 'Master Repository' to your 'Local Repository' and 'Merges' your most recent commit.
GIT four step process
Fetch - Merge - Commit - Push