Version Control Flashcards

1
Q

What is git?

A

git is a form of version control

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

what does git help with?

A

git helps you keep track of changes (or version)

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

what does DVCS stand for?

A

Distributed Version Control Systen

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

what are the steps to save a file to your git repository?
hint: there is 5 steps

A
  1. Initialize
  2. Make some changes
  3. stage the changes
  4. commit your changes
  5. repeat steps 2-4 (with new code)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the command to….
initialize a git repository

A

git init

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

what is the command to….
stage current changes for a new commit

A

git add .

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

what is the command to….
check the current status

A

git status

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

what is the command to….
create a new commit

A

git commit -m “”

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

in this command…
git commit -m
what does -m “” do

A

-m “” adds a message to the commit so you have more information on what that commit is

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

for git add how would you add all files in the current folder

A

git add .

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

what is the command to….
look at all logs and changes

A

git log

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