90DaysOfDevOps:Day#9
Table of contents
No headings in the article.
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. Git is used to tracking changes in the source code, enabling multiple developers to work together on non-linear development. Linus Torvalds created Git in 2005 for the development of the Linux kernel. Developers used to submit their codes to the central server without having copies of their own Any changes made to the source code were unknown to the other developers There was no communication between any of the developers
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.
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.
How do you create a new repository on GitHub?
In the upper-right corner of any page, use the drop-down menu, and select New repository.
Type a short, memorable name for your repository.
Optionally, add a description of your repository.
Choose a repository visibility.
Select Initialize this repository with a README.
Click Create repository.
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.
git remote add origin <remote_repo_URL>
git push --all origin
git push --all --set-upstream origin