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

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

1) What is Git and why is it important?

Git is a DevOps tool used for source code management. It is a free and open-source version control system used to handle small to very large projects efficiently.

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

A branch is essentially is a unique set of code changes with a unique name. Each repository can have one or more branches.

The main branch — the one where all changes eventually get merged back into, and is called master.

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

Git


While Git is a tool that's used to manage multiple versions of source code edits that are then transferred to files in a Git repository,

No alt text provided for this image


GitHub serves as a location for uploading copies of a Git repository. In a sense, then, there's no comparison when it comes to Git vs. GitHub as far as their function.

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

  1. In the upper-right corner of any page, use the drop-down menu, and select New repository.
  2. Type a short, memorable name for your repository. ...
  3. Optionally, add a description of your repository. ...
  4. Choose a repository visibility. ...
  5. Select Initialize this repository with a README.
  6. Click Create repository.


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

Local repositories reside on the computers of team members. In contrast, remote repositories are hosted on a server that is accessible for all team members - most likely on the internet or on a local network.

task-1:

- Set your user name and email address, which will be associated with your commits.

No alt text provided for this image

task-2:

- Create a repository named "Devops" on GitHub

- Connect your local repository to the repository on GitHub.

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

- Push your local commits to the repository on GitHub

No alt text provided for this image

Thank You

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

Anup D Ghattikar的更多文章

  • Django Rest Framework

    Django Rest Framework

    Introduction to Django Rest Framework Django REST framework (DRF) is a powerful and elegant toolkit built on top of the…

    11 条评论
  • Docker Tool Mastering

    Docker Tool Mastering

    What is Docker? Docker is a platform and toolset that simplifies the process of developing, deploying, and running…

    4 条评论
  • Devop's Bits & Byte's - By Anup Ghattikar

    Devop's Bits & Byte's - By Anup Ghattikar

    Medium Link: https://medium.com/@aghattikar82/devops-bits-bytes-by-anup-ghattikar-9a8c6b788ec9 HashNode Link:…

    10 条评论
  • Kubernetes Troubleshooting

    Kubernetes Troubleshooting

    Cluster Management Display endpoint information about the master and services in the cluster kubectl cluster-info…

    3 条评论
  • Kubernetes Cluster Maintenance

    Kubernetes Cluster Maintenance

    Kubernetes Cluster Upgrade Upgrade master Upgrading the control plane consist of the following steps: Upgrade kubeadm…

    2 条评论
  • Day 05:Kubernetes Storage Kubernetes Security

    Day 05:Kubernetes Storage Kubernetes Security

    Persistent Volumes Managing storage is a distinct problem from managing compute instances. The PersistentVolume…

  • Kubernetes services and service discovery

    Kubernetes services and service discovery

    Kubernetes is a powerful platform for deploying, scaling, and managing containerized applications. However, once you…

  • Day 03:Kubernetes Workloads

    Day 03:Kubernetes Workloads

    Kubernetes Deployment with YAML YAML (which stands for YAML Ain’t Markup Language) is a language used to provide…

    2 条评论
  • Kubernetes Networking

    Kubernetes Networking

    Topics Are: Services, Ingress, Network Policies, DNS, CNI Plugins Services Services provide a way to expose a set of…

    7 条评论
  • Day 70 - Terraform Modules

    Day 70 - Terraform Modules

    Modules are containers for multiple resources that are used together. A module consists of a collection of .

    2 条评论

社区洞察

其他会员也浏览了