For this step, I entered the following command in the terminal: ssh cs15lsp23ge@ieng6.ucsd.edu
and got the following output:
In order to do this, I kept hitting <up>
and <down>
keys until I got to the previous instance of running the above command. More precisely, I hit the <up>
key three times exactly in order to get to this command.
For this step, I entered the following command in the terminal: git clone git@github.com:gkishore6/lab7.git
and got the following output:
For this step, I simply went to my fork of the repository on GitHub, and copied the ssh link, and then ran the above command in the terminal.
For this step, I entered the following command in the terminal: bash test.sh
and got the following output:
For this step, it was yet another simple one, as I just needed to run the given script, so I ran the above command in the terminal without needing to navigate through much else.
For this step, I edited the code file to fix the failing test. In order to do so, I first openeed the file in vim, using the vim ListExamples.java
command. Once vim was open, in order to make the neccesary changes I hit the following series of commands: <43> <j> <e> <r> <2> <:wq>
. These commands did the following, 43
is the line number, j
goes to the next line, e
is the next command, r
replaces a character of text, 2
is the character that I want to add in the place of 1 (as in index2 v.s index1) , and :wq
is the last command that exits vim.
For this step, I entered the following command in the terminal: bash test.sh
yet again and got the following output:
For this step, I kept hitting the <up>
key until I got to the previous instance of running the above command. As we can see, all of the tests pass now! More precisely, I hit the <up>
key 5 times in order to get back to the previous instance of running this command.
For this step, first I had to add the file to the staging area, which I did by typing git add ListExamples.java
. After that, I needed to commit the file to the repository, which I did by typing git commit- m "committed"
where "committed" was my message. Finally, I pushed the file to the repository, which I did by typing git push
which pushed the file to the repository.