200-901 Practice Test practice questions, page 5 of 26, with answer review and explanations.
Question 21
What is the outcome of executing this command? git clone ssh:/john@example.com/path/to/my-project.git
creates a local copy of a repository called ג€my-projectג€
initiates a new Git repository called ג€my-projectג€
creates a copy of a branch called ג€my-projectג€
creates a new branch called ג€my-projectג€
Question 22
Which action does the Git command git merge allow the developer to perform?
Combine multiple sequences of commits into one unified history
Push changes to the remote repository
Create, list, rename, and delete branches
Switch between branches
Question 23
How does a developer create and switch to a new branch called `my-bug-fix` to develop a product fix?
git checkout -b my-bug-fix
git branch -b my-bug-fix
git branch my-bug-fix
git checkout my-bug-fix
Question 24
Drag and drop the Git commands from the left onto the right that add modified local files to a remote repository. Not all options are used. Select and Place:
Question 25
A developer needs to prepare the file README.md in the working tree for the next commit operation using Git. Which command needs to be used to accomplish this?