-
Create a directory named
task-2
. -
Inside the
task-2
directory, create a file namedsolution.txt
. -
In
solution.txt
, write the commands used to solve each step. Do not include the output of the command. -
Do not leave blank lines between commands.
-
Upload the
task-2
directory to your tasks GitHub repository using Git on the CLI, Tasks submitted through GitHub, using GUI will be rejected.
Note: Ensure that the directory and file names are in lowercase. Names such as Task-2, TASK-2, TaSk-2, Solution.txt, SOLUTION.TXT, or SoluTION.txt are not acceptable.
-
Configure your Git username and email globally.
-
Clone your Github repository in your home directory (
/home/<your username>
). -
Go inside the repository you cloned and create a directory titled
task-2
. -
Go inside
task-2
and create a file namedgreeting.txt
. -
Write
hello world
ingreeting.txt
. -
Save your changes in git with the message "Added greeting".
-
Create a git branch named
intro
and go to the new branch. -
Add
I love Git
as a new line to the filegreeting.txt
. The file should look like this:
Hello world
I love Git
-
Save your changes in Git with the message
Added I love Git
. -
Go back to
main
branch. Bring the work you did on branchintro
to main (DO NOT rebase). -
You just finished working on your release! Create a suitable tag titled
v1
for your release. -
After finishing all steps, upload all changes you made to the remote repository.