Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between git and github

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "what are the differences between git and github". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The difference between git and github: 1, git is a version management tool, while github is a website suitable for programmers to communicate; 2, git allows you to better manage your programs, and github can help programmers communicate and learn from each other.

This article operating environment: Windows7 system, Git2.30.0 version, Dell G3 computer.

What are the differences between git and github?

Difference and introduction between git and github

Git and github are two completely different concepts.

Git

Is a version management tool, is a version management tool that can only be used locally when your computer is not connected to the Internet. Its function is to enable you to better manage your program, such as the content you originally submitted, although it has been modified later, but through the git tool, you can reproduce the content you originally submitted, so as to make some wrong changes that you are aware of later. Can be restored.

About github, this is a website, that is, each programmer writes his own program, you can build an online warehouse on github, you can submit the code to the Internet every time you submit, so that every time you submit, others can see your code, and at the same time, others can also help you modify your code. This open source way is very convenient for programmers to communicate and learn.

Github

Is a very suitable website for programmers to communicate, many international technology bulls have their own open source code on github, others can see these programs at will as long as they apply for an account. At the same time, many domestic Internet companies, such as Baidu and Ali, also publish open source code on github, and interested programmers can also look for some of them.

To sum up, git can be thought of as a software that can help you write programs better, is a version management tool, and github is a website that helps programmers communicate and learn from each other.

What is Git?

Git is a version control system (Version Control System,VCS). Version control is a system that records changes in the contents of one or more files in order to consult specific version revisions in the future. With a version control system, you don't have to worry about losing files, accidentally modifying files, and so on, and you can go back to some point in your history.

Early centralized version control systems such as SVN and CVS had a single centrally managed server that kept revised versions of all files, and people who worked together connected to the server through the client to retrieve the latest files or submit updates.

Distributed version control systems such as Git or Mercurial are the first choice in modern times. Because the advantage of distribution is absolutely significant.

In a distributed version control system, the client not only takes a snapshot of the latest version of the file, but mirrors the code repository completely.

In this way, any server used to work together fails and can be recovered later with any mirrored local repository. Because each extraction operation is actually a full backup of the code repository.

Now, world-class companies such as Google, Facebook and Microsoft use Git every day.

As we all know, there are many bulls in the IT world, but there are few of them.

Linus Torvalds is one of them.

Linus Torvalds not only pioneered the Linux operating system but also developed the Git version control system.

The bottom layer of the current Android system is based on the changed Linux system. Do you think Linus Torvalds makes a great contribution?

The birth of Git is interesting:

In 2005, the Linux kernel development community was facing a serious challenge: they could no longer use BitKeeper (a distributed version control system) (because the Bitkeeper copyright owner decided to withdraw the license and the kernel development team negotiated with it without success), and there was no other SCM (Software Configuration Management) to meet the needs of their distributed system.

Linus Torvalds, the father of Linux, accepted the challenge and decided to develop a new version control system. He disappeared at the weekend, and in the new week, Git came out. LT is mighty.

Atlassian made a 10-year documentary for Git.

Github and Git are two different things.

Git is a version control system, and Github is an online Git-based code hosting service.

GitHub was written by Ruby on Rails in 2008. GitHub offers both paid and free accounts. Both accounts can create public code repositories, but paid accounts can also create private code repositories.

Why is Github so popular now that many of the source code of the world's top companies and projects are hosted on Github-good looks!

Now this generation still has to look good. You said that code hosting sites such as Sourceforge have been around for a long time, why is it not as popular as Github?

The key is that Github is good-looking (you're so good-looking, you're right about everything).

Gitlab

One small flaw in Github (not really a flaw) is that your repo (short for repository, for "warehouse") requires public, and if you want to create a private (private) repo, you have to pay.

Fortunately, however, Gitlab solves this problem by creating a free private repo on it.

Both GitHub and GitLab are version control interfaces based on web, which serve the Internet. Github can be registered directly, and Gitlab needs to be deployed to the server.

The default property of a project created by GitLab is Private (private), of course, you can also choose Public (public) or Internal (internal).

SVN, Git, Github, Gitlab these tools are very cool and great, also recommended for the majority of programmers to use!

This is the end of the content of "what are the differences between git and github". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report