QuestionQuestion

1. After taking CSE 15L, you landed yourself on an internship at Pied-Piper's core algorithm team. Your job as a tester is to ensure that the algorithm is correct. The first thing you'll need to do in order to start is to get access to the code base.
Since it's the first day of your work, you will need to tell Git about yourself before you can start contributing. What are two Git commands that will set your name and email globally for your account?

2. 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?

3. After you've navigated to the project directory, what is a command that will show you the history of all commits to the repository, assuming no aliases have be configured for Git?

4. Turns out you do have some personalized preferences how you use Git. What is the file you can edit in order to set global configurations for Git to your likings?

5. 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 be 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'?

6. 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?

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

8. You've written your very first test named 'ShouldSortByD2F.java', what are the Git commands that will make your changes reflected in the `testing` branch in the remote repository named 'origin'?

9. 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 'testing' branch up-to-date with the changes made to the 'core' branch on the remote repository?

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

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

1. After taking CSE 15L, you landed yourself on an internship at Pied-Piper's core algorithm team. Your job as a tester is to ensure that the algorithm is correct. The first thing you'll need to do in order to start is to get access to the code base.
Since it's the first day of your work, you will need to tell Git about yourself before you can start contributing. What are two Git commands that will set your name and email globally for your account?
git config --global user.name "my username"
git config --global user.email "my email"

2. 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?
git clone https://git.piedpiper.com/algorithm/middle_out.git project_directory...

By purchasing this solution you'll be able to access the following files:
Solution.docx.

$75.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Computer Science - Other Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats