Day 8 : Basic Git & GitHub for DevOps Engineers
Today, We have some theory and basic tasks for git. let's start with tasks.
1) Install Git on your computer:
To install git on Ubuntu you just need to run the following command.
sudo apt install git
and it will start installing git on your system like this.

you can check git version by typing
git --version

- Create a new repository on GitHub and clone it to your local machine
To create a new repository, On the GitHub homepage, click on the "+" button in the top-right corner and select "New repository" from the dropdown menu.

In the "Repository name" field, enter a name for your repository. You can also provide an optional description to give others a brief idea about your project.
Choose whether you want the repository to be public (visible to everyone) or private (accessible only to you and collaborators).
To clone it on a local machine you can just run the following command.
git clone url

- Make some changes to a file in the repository and commit them to the repository using Git
you can create file in your folder then you can commit them by following command.
git add .
git commit -m "first commit"
git push -u origin main
you will see message like below.

That was all for today's challenge. It was quite easy. If you have any suggestion/questions please comment below. Looking forward to next challenge.
Happy Learning.



