GIT - Coursera - IBM Flashcards
create a new local repository
git init
create and add a file to the repo
git add
commit changes
git commit
create a branch
git branch
switch to a branch
git checkout
check the status of files changed
git status
review recent commits
git log
revert changes
git revert
get a list of branches and active branch
git branch
merge changes in your active branch into another branch
git merge
What is stored on the master or main branch?
Files which contain documentation only
The original, unchanged version of the code
The deployable version of the project code
All the project files, including files from forks
The deployable version of the project code
Which Git command transfers changes from your local repository to the remote repository?
git-pull
git-push
git-fetch
git-remote
git-push
When would you fork a project?
To create a backup of the master branch of the project
To give a new user permissions to the project
To use an existing repository as the base for a new project
To add a branch to an existing tree in the project
To use an existing repository as the base for a new project
Forking allows you to modify or extend a repository without affecting the original repository. Frequently, developers use forking to take an existing repository and make it the starting point for your new project.
Which GitHub developer command prepares an email submission in a form appropriate for a Linux kernel-style public workflow?
git-send-email
git-request-email
git-format-patch
git-request-pull
git-format-patch
Which Git command can a repository administrator use to allow anonymous downloads from the repository?
git-shell
git-remote
git-daemon
git-am
git-daemon