CI/CD & GIT Flashcards
GitHub is a repository platform for
open source projects
The projects on git hub are publically available so that other developers can use and _________ to the project
The projects on git hub are publically available so that other developers can use and contribute to the project
The git clone command _________ a copy of the ______ repository, including the history of all changes
The git clone command downloads a copy of the remote repository, including the history of all changes
The git clone command makes a local copy of the latest version of all the files known as the “________ ____”
The git clone command makes a local copy of the latest version of all the files known as the “working tree”
With the git init command if the code doesn’t already exist in a remote repository you can ________ a new repository _______
With the git init command if the code doesn’t already exist in a remote repository you can initialize a new repository locally
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
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
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?
git add /git add .
git commit
git push
Pull Request
The git add command _____ changed files for the next ______.
The git add command stages changed files for the next commit.
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
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
The git commit command only adds changes to your local repository. It does not push them to any remote repository such as GitHub.
The git commit command only adds changes to your local repository. It does not push them to any remote repository such as GitHub.
The git commit will only commit the changes that were staged using the ___ ____ command
The git commit will only commit the changes that were staged using the git add command
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.
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.
The git checkout -b command allows you to create a new ______ and check it out __________ with the -b flag
The git checkout -b command allows you to create a new branch and check it out immediately with the -b flag
Commit IDs are long strings that are hard to remember. The git tag command adds a tag that acts as a ______ to a specific ______.
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.
You can authenticate with GitHub by uploading a ______ key and having the ______ key stored on your machine.
You can authenticate with GitHub by uploading a public key and having the private key stored on your machine.