Github Flashcards

1
Q

Version Control

A

A system that records changes to a file or set of files over time so that you can recall specific version later

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Git’s birth

A

2005

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Git directory

A

Where git stores the metadata and object database for your project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The working tree

A

A single checkout of one version of the project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Git workflow

A
  1. You modify files in your working tree
  2. You stage the files, adding snapshots of them to your staging area
  3. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Two states of two directories

A

Tracked or untracked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Untracked

A
  1. Files that were in the last snapshot
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Tracking new files

A
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
  (use "git reset HEAD ..." to unstage)
new file:   README
How well did you know this?
1
Not at all
2
3
4
5
Perfectly