Question: 1. If the source code for Pied-Piper's Middle-Out algorithm is located at `https://git.piedpiper.com/algorithm/middle_out.git`, what is a Git command that will obtain a local copy of
1. If the source code for Pied-Piper's Middle-Out algorithm is located at `https://git.piedpiper.com/algorithm/middle_out.git`, what is a Git command that will obtain a local copy of the full repository? (1 point)
[ YOUR ANSWER GOES HERE ]
2. After you've navigated to the project directory, what is a command that will show you the history of all commits to the repository? (1 point)
[ YOUR ANSWER GOES HERE ]
3. To start on your own testing project, you want to make sure that the changes you make will not affect others, and therefore it is good practice to working on a new branch altogether.
What is a command (or commands) in Git that will allow you to switch to a new branch named 'testing'? (1 point)
[ YOUR ANSWER GOES HERE ]
4. The tests are written in Java, and therefore will generate many '.class' files upon compilation. In order to keep the repository clean of files you don't wish to keep under version control, you want to tell Git not to include any '.class' files into your repository.
Which file tells Git the file patterns such that Git will not detect any changes to those files? (1 point)
[ YOUR ANSWER GOES HERE ]
5. Assuming that the said file is empty, what modifications do you need to make in order for Git to ignore any '.class' file? (1 point)
[ YOUR ANSWER GOES HERE ]
6. You've written your very first test named 'ShouldSortByD2F.java', what are the Git commands that will make your changes reflected in the remote repository named 'origin'? (1 points)
[ YOUR ANSWER GOES HERE ]
7. Satisfied with what you did on the first day, you turned off your computer and went back home. Meanwhile, Dinesh, another member on your team, pushed some changes to the 'core' branch in the remote repository, which include new classes to be tested.
What is a single Git command that will keep your current 'test' branch up-to-date with the changes made to the 'core' branch? (1 point)
[ YOUR ANSWER GOES HERE ]
8. The previous command is effectively the same as sequentially executing which two Git commands? (1 points)
[ YOUR ANSWER GOES HERE ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
