Day 9 Task: Deep Dive in Git & GitHub for DevOps Engineers.

Day 9 Task: Deep Dive in Git & GitHub for DevOps Engineers.

# Day 9 Task: Deep Dive in Git & GitHub for DevOps Engineers


## Find the answers by your understandings(Shoulden't be copied by internet & used hand-made diagrams) ?of below quistions and Write blog on it.

1) What is Git and why is it important?


Git is a version control system used to track the different version of the software.

Git is important as it helps to maintain to keep track record of the update done on system by any user at any given time.

Git help us to go to previous version of the project which make it easier to see the impact of the changes made to the project.

Git is helpful as different people can work on their own convenience online or offline and then merge their work assigned in the process of software development.


2) What is difference Between Main Branch and Master Branch??


Main branch and Master branch are the same branch where main branch is the name used on GitHub and master branch is used in the local repository.

Main branch is the original branch from where other branches are created.


3) Can you explain the difference between Git and GitHub?


Git refers to the version control system which tracks all the update done on the system and github refers to doing the same in the cloud.


4) How do you create a new repository on GitHub?


In order to create a new repository in the Github, you need to click on (+) then click on new repository and then mention a name and make it public.


5) What is difference between local & remote repository? How to connect local to remote?


Local repository refers to the repository created on your system and can be accessible from your local system.

Remote repository is created on GitHub and can be access from local repository when it's cloned to the local repository.


Connecting local to remote repository can be done by using git add filename, git commit -m "message", git push origin master


## Tasks


?Create a repository named "Devops" on GitHub

?

?<img width="619" alt="create repo" src="https://user-images.githubusercontent.com/124788172/219636094-6dcf9a7b-5c5d-4f88-b6f6-46e9757742bd.png">


- Connect your local repository to the repository on GitHub.

- <img width="445" alt="git cloning local" src="https://user-images.githubusercontent.com/124788172/219636194-64ceafe7-19ff-43cd-a93b-a20e3a63a24b.png">


- Create a new file in Devops/Git/Day-02.txt & add some content to it


<img width="973" alt="local file" src="https://user-images.githubusercontent.com/124788172/219636389-1d2981d8-498a-4e19-8a0e-a0117965df9b.png">


- Push your local commits to the repository on GitHub

<img width="466" alt="push changes to HUB" src="https://user-images.githubusercontent.com/124788172/219636449-34b0fffb-825a-4424-8f55-512e1f6f8c33.png">

<img width="986" alt="changes ?to GitHub" src="https://user-images.githubusercontent.com/124788172/219636474-093b5800-8a04-4a56-9567-7e7b12fca120.png">



#aws #linux #git #github #devops #devopsengineer #docker

要查看或添加评论,请登录

Manish Negi的更多文章

社区洞察

其他会员也浏览了