CI/CD & GIT Flashcards

1
Q

GitHub is a repository platform for

A

open source projects

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

The projects on git hub are publically available so that other developers can use and _________ to the project

A

The projects on git hub are publically available so that other developers can use and contribute to the project

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

The git clone command _________ a copy of the ______ repository, including the history of all changes

A

The git clone command downloads a copy of the remote repository, including the history of all changes

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

The git clone command makes a local copy of the latest version of all the files known as the “________ ____

A

The git clone command makes a local copy of the latest version of all the files known as the “working tree

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

With the git init command if the code doesn’t already exist in a remote repository you can ________ a new repository _______

A

With the git init command if the code doesn’t already exist in a remote repository you can initialize a new repository locally

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

The git status command will tell you information like;

Any changes that are not yet _______ for commit

Any _______ changes that are not committed

What ______, you’re currently using

A

The git status command will tell you information like;

Any changes that are not yet staged for commit

Any staged changes that are not committed

What branch, you’re currently using

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

There are 4 steps to making a change to a source code. Three of those steps are commands the 4th is code review. What are the 4 steps?

A

git add /git add .

git commit

git push

Pull Request

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

The git add command _____ changed files for the next ______.

A

The git add command stages changed files for the next commit.

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

This command git commit -m “describe commit here”

Adds your staged changes to your local repository. When you are satisfied with a change or set of changes that you have made to the files you are ready to push

A

This command git commit -m “describe commit here”

Adds your staged changes to your local repository. When you are satisfied with a change or set of changes that you have made to the files you are ready to push

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

The git commit command only adds changes to your local repository. It does not push them to any remote repository such as GitHub.

A

The git commit command only adds changes to your local repository. It does not push them to any remote repository such as GitHub.

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

The git commit will only commit the changes that were staged using the ___ ____ command

A

The git commit will only commit the changes that were staged using the git add command

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

The git push command pushes the changes that have been made to your _____ repository to a _____ repository, Until you push your changes they are only stored ______ on your system.

A

The git push command pushes the changes that have been made to your local repository to a remote repository, Until you push your changes they are only stored locally on your system.

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

The git checkout -b command allows you to create a new ______ and check it out __________ with the -b flag

A

The git checkout -b command allows you to create a new branch and check it out immediately with the -b flag

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

Commit IDs are long strings that are hard to remember. The git tag command adds a tag that acts as a ______ to a specific ______.

A

Commit IDs are long strings that are hard to remember. The git tag command adds a tag that acts as a pointer to a specific commit.

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

You can authenticate with GitHub by uploading a ______ key and having the ______ key stored on your machine.

A

You can authenticate with GitHub by uploading a public key and having the private key stored on your machine.

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

What should be done after installing Git on a system for the first time?
You need to set your global ____________ and
your global ____________

A

global user.name

your user.email

17
Q

In the Git course, you learned

how to make a change to a _____ file
Managed that change within a _____
Put the change through a merge process using a ____ ______ to merge the change into the _____ branch

A

how to make a change to a source file
Managed that change within a branch
Put the change through a merge process using a pull request to merge the change into the master branch