# Day 9 Task: Deep Dive in Git & GitHub for DevOps Engineers.
Bilal Yousaf
Linux Server Administrator | DevOps Engineer | Python | AWS | Linux | CI/CD | Dockers | Kubernetes | Ansible | Infrastructure as Code
Understanding basic Git Commands and their uses:
Create New Directory in your local machine / Vs Code
First of all create a new directory by using "mkdir" and enter in that directory
by using "cd".
Now initialize a new git repository. All the commands are given below with my work. Run "git init" is used to start a new Git Repository.
git add : Use the git add command to add the newly created files to the staging area, preparing them for the next commit.
git status : Use the git status for checking file status.
git commit : In Git, the git commit command is used to record changes made to the repository.
git log : This command is used to check the log history
To config user.name and user.email:
Task 2:
- Create a repository on GitHub
Copy this HTTPS url and clone into your local machine by using git clone.
- Connect your local repository to the repository on GitHub.
- Create a new file & add some content to it - Push your local commits to the repository on GitHub
git push origin master
After clone url in your local machine, make a file and same procedure of git add/git commit, then push your work on your github by using above command.