Skip to content

Latest commit

 

History

History
138 lines (96 loc) · 2.9 KB

my-solution.md

File metadata and controls

138 lines (96 loc) · 2.9 KB

Solution

Complete each task. Then, follow the instructions as to what to copy and paste into the empty code block.

Note: Carefully read the instructions for each task. Sometimes you will be asked to record the command(s) you wrote while other times you will be asked to record the output of the command you wrote.

1

Create a new directory called git-lab/. Then, navigate inside of that directory.

Copy and paste the command(s) you used into the code block below.

commandlinepractice ls
code.js    command.js pursuit
➜  commandlinepractice cd pursuit
➜  pursuit ls
labs   unit-1
➜  pursuit cd labs
➜  labs
code . 
git clone [email protected]:Andree52/lab-git.git

2

Initialize the directory as a git repository.

Copy and paste the output of the command(s) you ran into the code block below.

cd ~

3

Check the current status of the git repository.

Copy and paste the output of the command(s) you ran into the code block below.

pwd
ls
cd
git status

4

Create a new file called readme.md. Then stage that file.

Copy and paste the command(s) you used into the code block below.

touch readme.md

5

Check the current status of the git repository.

Copy and paste the output of the command(s) you ran into the code block below.

ls
cd lab-git 
git status 

6

Add the following text to your readme.md file.

I am learning to use git.

Then, check the current status of the git repository.

Copy and paste the output of the command(s) you ran into the code block below.

~ ls 10.4-watchList Documents Library Music Public practice.md Desktop Downloads Movies Pictures commandlinepractice ➜ ~ cd commandlinepractice ➜ commandlinepractice ls code.js command.js pursuit ➜ commandlinepractice cd pursuit ➜ pursuit ls labs unit-1 ➜ pursuit unit-1 ➜ unit-1 ls gettin-started-with-git ➜ unit-1 gettin-started-with-git ➜ gettin-started-with-git git:(main) ls readme readme.md ➜ gettin-started-with-git git:(main) readme.cd zsh: command not found: readme.cd ➜ gettin-started-with-git git:(main) ls readme readme.md ➜ gettin-started-with-git git:(main) cd readme.md cd: not a directory: readme.md ➜ gettin-started-with-git git:(main) code .```


## 7

Commit your changes and include a sensible commit message. Then, check your repository's history.

Copy and paste _the command(s)_ you used into the code block below.

git add . git commit -m "yeah yeah" git push


## 8

Check the current status of the git repository.

Copy and paste the _output_ of the command(s) you ran into the code block below.

git status


## 9

Stage your changes and then make another commit with a sensible commit message.

Copy and paste _the command(s)_ you used into the code block below.

git commit -m "new quote"