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.
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.
Initialize the directory as a git repository.
Copy and paste the output of the command(s) you ran into the code block below.
Check the current status of the git repository.
Copy and paste the output of the command(s) you ran into the code block below.
Create a new file called readme.md
. Then stage that file.
Copy and paste the command(s) you used into the code block below.
Check the current status of the git repository.
Copy and paste the output of the command(s) you ran into the code block below.
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.
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.
Check the current status of the git repository.
Copy and paste the output of the command(s) you ran into the code block below.
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.