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?

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?

3. To start on your own testing project, you want to make sure that the change

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'?

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?

5.Assuming that the said file is empty, what modifications do you need to make in order for Git to ignore any '.class' file?

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'?

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?

8.The previous command is effectively the same as sequentially executing which two Git commands?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!