View on GitHub

reading-notes

Reading notes for Code 102.

Revisions and the Cloud Class 3

version control is a system that allows you to revisit versions of a file or set of files by recording changes

Git

Graphical clients

Initial Customization

## Workflow Local Repository Structure The local Git repository has three components:

  1. working directory: the files reside here
  2. index: the area used for staging
  3. head: points to the most recent commit

Saving Changes All files are either tracked or untracked. Untracked were not in the last snapshot and do not currently reside in staging area.

Life Cycle of File Status

  1. After you edit a file, git flags it as modified as you made changes
  2. you staged the modified file
  3. then you commit staged changes

Tracking and Staging a New File

Committing a File

Rule is ACP

stashing changes

Clean git history it is important to save my changes with why I saved them with a personal message to see what the changes were.

to get to git master through terminal

  1. pwd
  2. documents
  3. ls
  4. cd projectsgit p
  5. ls
  6. cd codefellows
  7. ls
  8. cd reading-notes
  9. code . <= back