Version Control Flashcards

1
Q

VCS

A

Version Control Systems

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

SCM

A

Source Control Managment: It is a software tool that helps developers manage and track changes to source code files and other digital assets.

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

DVCS

A

Distributed Version Control System: It is a type of source control management system that allows multiple developers to work on the same codebase independently and concurrently, even if they are not connected to a centralized server.

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

git

A

allows you to maintain a linear history or timeline of your code

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

commits

A

snapshots of your codebase at points in time

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

SHA-1 hash/SHA

A

short (8-10 char) representation of a commits longer(40 char) identifier

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

6 parts to a commit
_____________
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
Message
__________
Time
Modified file references
Identifier
SHA-1 hash/SHA

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
Message
Author
___________
Modified file references
Identifier
SHA-1 hash/SHA

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
Message
Author
Time
________________
Identifier
SHA-1 hash/SHA

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
Message
Author
Time
Modified file references
_______________
SHA-1 hash/SHA

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
Message
Author
Time
Modified file references
Identifier
________________

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

6 parts to a commit
M
A
T
M F R
I
S

A

Message
Author
Time
Modified file references
Identifier
SHA-1 hash/SHA

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

git branches

A

multiple timelines within the same repository

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

first commit on a repository

A

Initial commit

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

most recent commit in a repository

A

HEAD commit or HEAD

17
Q

initialize a git repository

A

git init -
git init directory

directory: This is an optional parameter that specifies the name of the directory where Git should initialize the repository. If you don’t specify a directory, Git will create a new repository in the current working directory.

18
Q

stages a file or files for a new commit.

A

git add ________
git add options file

file: This is a list of one or more file paths that you want to add to the staging area. If you don’t specify any files, Git will add all changes in the current directory.

19
Q

displays the state of the working directory and the staging area. shows changes have been staged, which haven’t and which are being track by git.

A

git status

20
Q

create a new commit with a message

A

git commit -m “message about commit”

21
Q

Take a look at the history of commits. displays: identifiers, authors, times and messages

A

git log

22
Q

clone another repository

A

git clone -
git clone options repository_URL directory_name

repository_URL: This is the URL of the repository you want to clone. You can usually find this on the repository’s homepage.

directory_name: This is an optional parameter that specifies the name of the directory where Git should clone the repository. If you don’t specify a directory name, Git will create a new directory with the same name as the repository.

23
Q

upload local repository to a remote repository

A

git push -
git push options remote branch

remote: This is the name of the remote repository you want to push your changes to. If you don’t specify a remote, Git will use the default remote (usually “origin”).

branch: This is the name of the branch you want to push to the remote repository. If you don’t specify a branch, Git will use the current branch.