This lab report will be a step-by-step process of forking a repository, cloning the repository, and using VIM to edit and save the file.
1) Go into your GitHub account and into the repository.
2) Go to the repository’s settings.

3) Scroll all the way down and click on the button ‘Delete this repository’.
This will delete any exiting forks of the repository.

4) Additionally, log into the @ieng6 account. Then use the command <rm -r lab7/> to remove the directory
from the account in order to follow the next steps. When this is completed, log out of the account.

1) Follow this link to fork Lab 7’s repository.
1) Begin a timer to determine your baseline in logging in, cloning, and editing the code.
1) Use the command: <ssh cs15lsp23__@ieng6.ucsd.edu> to remote login. With ssh you can remote login to your
account in order to begin the cloning process of the repository.
ssh cs15lsp23il@ieng6.ucsd.edu
1) Use the command: <git clone (ssh link)> to clone the repository from your GitHub account into
your ieng6 account.
git clone git@github.com:a-nguy4n/lab7.git
2) Use the command

If the name of directory is shown in the output, cloning is a success!
3) Then, use the command < cd > to get into the repository and access its files.
cd lab7/
4) Once the directory has changed into that repository, use command ls to see the files inside. By doing this, you can gain access to the files in order to follow the next steps to test and edit.

1) To run a test use the command: < bash test.sh > .
bash test.sh
Output:

The command
1) To edit the code of the file, use the command: < vim ListExamples.java >. After running the command,it will open up to the contents of the file containing code that must be edited.

2) Next follow these steps in order to edit the code:
Step One: Starting from the beginning line, hit the key j until you reach these code lines:

Step Two: With the cursor on the line of ‘ index1 += 1; ‘ hit the L key to move the cursor onto the number 1.

Step Three: Press the keys in this order:
< i > : User will enter into “Insertion Mode” which allows them to edit the text
< backspace >: By backspacing, user will not delete the wrong character for the necessary edit.
< delete >: This should delete the number 1 from index1.
<2> : Typing in ‘2’ will edit index1 to index2. This is the correction being made.
< escape > : Once done editing, the < escape > key allows user to leave “Insertion Mode” and back into “Normal Mode”
The results:
Before

After

1) Before running the tests, it is important to save the edited file.
Type in the following:
<:wq>
< return >
2) To run the tests use the command: < bash test.sh > . This command will run tests on the newly edited ‘ListExamples.java’ file
through JUnit. And now all test cases have passed!

1) First in the command line type:
git add ListExamples.java
2) Secondly, type in:
git commit -m "index changed"
This command will commit the edited file with a message. < -m > is the command to add a message using ”“. In the block code, the message choosen was “index changed” to summarize the edits made.
The output after pressing < enter > to the command is:

3) Finally, type in:
git push origin
The command will now push the edits into the forked repository with the updates.
The output after pressing < enter > to the command is:
