This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What is the primary advantage of the distributed nature of Git?
Git automatically merges saved changes from multiple remote authors into a single project repo.
Multiple remote contributors can work together on a project without fear of overwriting each other's work. Contributors can check changes from another contributor before merging them with their own.
Git distributes files and a folder structure to each contributor's machine across a wide-area network for safe keeping. This architecture provides highly secure data storage and ensures that project repo data can't be corrupted.
When a Git user copies a repository, what term describes the reference that Git sets up for the original repository?
origin
repo
remote
What Git command makes a copy of an existing repository?
git clone <repo-name>
git clone <repo-path>
git copy <repo-name>
What Git command can be used to save current changes, but without using a pull request?
git stash
git save
git store
Suppose you have a project that has 10 files in your local working branch of the repo. You recently updated 3 of the files: toc.yml, intro.txt, and exercise.json. Now, you want to create a pull request for only the changes to the JSON file. What set of Git commands should you use to create the pull request for only those changes?
git add . git commit -m "my changes for the exercise" git push origin <working-branch>
git add .
git commit -m "my changes for the exercise"
git push origin <working-branch>
git add exercise.json git commit -m "my changes for the exercise" git push origin <working-branch>
git add exercise.json
git add exercise git commit -m "my changes for the exercise" git push remote <working-branch>
git add exercise
git push remote <working-branch>
You must answer all questions before checking your work.
Was this page helpful?