Git and Version Control Flashcards

1
Q

Why is version control necessary

A

To keep track of codebase and ease collaborative work.

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

Git’s main functions

A

Git tracks the local repository, maintains a record of changes, provides a means to share code between collaborators.

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

Git’s 3 project “states”

A

Modified (changed but not marked by Git), Staged (tracked and within snapshot), and Committed(successfully within snapshot).

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

Command to add(append to end) text to a file

A

echo “text in quotes”&raquo_space; filename.txt

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

nano

A

simple terminal based text editor

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

Command to enter a file in the nano text editor

A

nano

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

Command to exit the nano text editor

A

Control X (^ + X)

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