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?
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,
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?
领英推荐
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.
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
Thank You