Day 8 Task: Basic Git & GitHub for DevOps Engineers.

What is Git?
Git is a version control system used for tracking changes in computer files. It is generally used for source code management in software development.
Git is used to tracking changes in the source code
The distributed version control tool is used for source code management
It allows multiple developers to work together
It supports non-linear development through its thousands of parallel branches.
What is Github?
GitHub is a web-based platform that provides hosting for version control using Git.GitHub is a very popular platform for developers to share and collaborate on projects, and it is also used for hosting open-source projects.
Features of Git
Tracks history
Free and open source
Supports non-linear development
Creates backups
Scalable
Supports collaboration
Branching is easier
Distributed development
Task:
1.Create a new repository on GitHub and clone it to your local machine
2.Make some changes to a file in the repository and commit them to the repository using Git
3.Push the changes back to the repository on GitHub
create a new repository on git hub named as newday8

clone it on local machine using the command

git clone https://github.com/achendel/newday8.git
Created new python file in local machine named as aa.py

git add: The git add command adds a change in the working directory to the staging area. It tells Git that you want to include updates to a particular file in the next commit.
ex: git add aa.py
git commit -m "type msg here": Since we have finished our work, we are ready move from
stagetocommitfor our repo.Adding commits keep track of our progress and changes as we work.ex:git commit -m "saved file"
git push :The git push command is used to upload local repository content to a remote repository
ex: git push

Changes are reflected in your remote repository

The git pull command is used to fetch and download content from a remote repository and immediately update the local repository to match that content.




