Version Control Flashcards

1
Q

Repository

A

Holds files and their versions

-remembers every committed change to every controlled files

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

Copy-modify-merge

A

Can look at new changes make them to new version so they have been merged

  • makes concurrent changes
  • only shows changes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Git

A

-a framework for version control system workflows
-tracks changes to files and directories
-permits concurrent access
GitHub: popular services for repositories

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

VCS repository

A

Is a store of data and metadata

  • data stored similar looking to a tree
  • combines a local repo with a working copy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Push

A

Write into repo

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

Pull

A

Reading repo

-is actually two cmds fetch and merge (origin/master)

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

Git cycle

A
  1. Clone to make a working copy or init plus other actions creates a new local repo
  2. In working copy edit files or make new ones
  3. If needed update local copy with pull to pick up changes by others
  4. Build/run/test/view/render/read
  5. Add the name of changed files that are ready to be committed (if don’t use add git won’t keep track of changes)
  6. Commit you changes to local repo (add message, keeps record of it locally)
  7. If changes aren’t ready go back to 2
  8. Push committed changes to remote repo
  9. Go to step 2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Commit

A
  • each commit results in the creation of a new snapshot

- commit is not the same as push

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

Git log

A

Gives list of snapshots (commits)

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

Git status

A

Reports of files need to be committed

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

Branch

A

-are pointers to certain commits
-master is the main branch
-origin is the remote repo
-git pull == git pull origin master
-git push == git push origin master
Ex) 18431a0

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

Git add

A

Results in a file/directory being staged for commit

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

Git ignore

A
  • files we want to ignore

* .o *.class

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

Git fetch

A

See changes

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

Git diff

A

Shows differences

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

-help

A

Helps with cmds