Git and Version Control Flashcards
1
Q
Why is version control necessary
A
To keep track of codebase and ease collaborative work.
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.
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).
4
Q
Command to add(append to end) text to a file
A
echo “text in quotes”»_space; filename.txt
5
Q
nano
A
simple terminal based text editor
6
Q
Command to enter a file in the nano text editor
A
nano
7
Q
Command to exit the nano text editor
A
Control X (^ + X)