** What is Git ** A tool for managing source code versions ** What is GitHub ** Web service that supports developers using Git
Git and GitHub are strongly related, and just because you're using Git doesn't mean you have to use GitHub. As we will see later, there are other Git hosting services besides GitHub.
How was Git born in the first place? From that background, let's confirm the convenience of Git.
The creator of Git is ** Linus Torvalds , who created the Linux OS. Initially, he used a version control system called "BitKeeper" in Linux kernel development. I was looking for an alternative service because I couldn't use "BitKeeper" due to licensing issues, but none of my free version control systems could meet his high requirements. Therefore, Mr. Torvalds himself started development, and what was born there is " Git **". So what makes Git better than traditional version control tools?
The great thing about Git is that it's a ** distributed repository **. Traditionally there was only one repository overall, but Git has two, "local" and "remote". The advantage of this decentralized system is that when multiple system developments are performed, each developer writes the source code and adds it to the repository, so the more developers there are, the more ** the repository becomes. Inconsistencies ** increase the likelihood.
To prevent such repository inconsistencies, each developer records changes in the ** local repository ** on their own machine, sees the overall situation, and records the changes in the ** remote repository **. This has made it more convenient.
With unprecedented version control in a decentralized way, the concerns we had with traditional management tools have been dispelled and are still used in development to this day.
The word Git gives the impression that it's a dedicated service, but there are other Git hosting services like this, and you don't have to use GitHub.
GitHub can perform version control using Git on the cloud, and has a function that makes Git even easier to use. Among them, the three functions ** "Fork", "Pull Request", and "Merge" ** improve convenience and are supported by many users.
--Fork: You can get (copy) someone's repository and modify it. --Pull Request: A function that allows you to request reviews from other members regarding changes in the source code that you have made. --Merge: Introducing a person's code into your own code.
"Fork" to fix the code and make a "pull request" to the owner. The owner who receives the "pull request" "merges" the code.
GitHub is also known as a place for social coding, where you can see the source code of others. This also makes it easier to develop in open source, such as participation in development and feedback, which is also an advantage of GitHub.
The differences that are selected include the difference in hosting between the Web service type and the installation type, the difference in the corresponding VCS, the free private repository, and the fee format.
Git is a version control tool with the purpose of improving development efficiency by making it decentralized. GitHub is a service that uses it as open source to improve the convenience of team development and to form a community of engineers.
ITmedia Enterprise https://www.itmedia.co.jp/enterprise/articles/0504/20/news075.html FERROWS https://job.fellow-s.co.jp/useful_info/feature_detail/Art-0488 Linix.com https://www.linux.com/
Recommended Posts