zpostcode
Git
Jan 13, 2025 2:37 AM

  Git computing Actions Cite verifiedCite While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions. Select Citation Style MLA APA Chicago Manual of Style Copy Citation Share Share Share to social media Facebook X URL https://www.britannica.com/technology/Git Give Feedback Feedback Corrections? Updates? Omissions? Let us know if you have suggestions to improve this article (requires login). Feedback Type Select a type (Required) Factual Correction Spelling/Grammar Correction Link Correction Additional Information Other Your Feedback Submit Feedback Thank you for your feedback Our editors will review what you’ve submitted and determine whether to revise the article.

  Print Cite verifiedCite While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions. Select Citation Style MLA APA Chicago Manual of Style Copy Citation Share Share Share to social media Facebook X URL https://www.britannica.com/technology/Git Feedback Written by Meg Matthias Meg Matthias is Senior Video Producer at Encyclopædia Britannica. Meg Matthias Fact-checked by The Editors of Encyclopaedia Britannica Encyclopaedia Britannica's editors oversee subject areas in which they have extensive knowledge, whether from years of experience gained by working on that content or via study for an advanced degree. They write new content and verify and edit content received from contributors. The Editors of Encyclopaedia Britannica Last Updated: Aug 7, 2024 • Article History Table of Contents Ask the Chatbot a Question Ask the Chatbot a Question

  

Git1

  GitHub page showing Twitter's open-source codeAlthough Git and GitHub are often confused for each other, GitHub uses Git as the basis of its code-sharing repositories.(more)Git, open-source distributed version control system (DVCS) created by Linux developer Linus Torvalds in 2005. As of 2024 Git is the most widely used version control system and is used by both individuals and companies including Microsoft, Netflix, and Google.

  GitHub and GitLabGitHub: cloud-based service owned by Microsoft, founded in 2008GitLab: GitHub alternative with a free version, founded in 2011Both GitHub and GitLab function as software code repositories that use Git to help developers collaborate more effectively.

  When developers write code, they generally rely on a DVCS, which functions as a sort of “shared digital diary” for code, to manage and track changes. When using Git, developers can pull source code into their personal “branch,” which is a copy of the main repository—where all changes to source code are tracked. Once a developer creates the branch, they can make necessary changes, and then “commit” the code. This means that developers can either merge their changes into the repository or keep the changes in a separate file. A DVCS allows developers to effectively collaborate by merging their committed code into the main repository without conflicts or unknowingly overwriting one another’s work.

  In the early 1990s, when Linux was still a new technology, developers worked without a DVCS. When developers posted changes to the open-source operating system, Torvalds would manually apply the changes to his source code and eventually release an updated version. Changes were marked only with a “diff” tag in the code. The concurrent version systems (CVS) available for version control at the time struggled to categorize larger code changes and were susceptible to bugs, and Torvalds disliked other open-source options. In 2002 Torvalds and Linux introduced and began to use the version control system BitKeeper—a proprietary DVCS owned by BitMover. Torvalds, who had not originally wanted to rely on a version control system, said BitKeeper “changed the way [he] viewed source control.”

  “I had performance requirements that were not even remotely satisfied by what was available, and I also worried about integrity of the code and the whole workflow, so I ended up just deciding to write my own.” —Torvalds in a 2015 Linux Foundation interview

  However, many Linux developers were devoted to the philosophy behind open source, which rejected secrecy in favor of collaborative, open sharing in the programming world. Many developers voiced their frustration to Torvalds, and some refused to work with BitKeeper at all. The breaking point occurred when Torvalds’s collaborator Andrew Tridgell reverse-engineered BitKeeper protocol to such a degree in an attempt to bypass BitMover’s usage rules that mediation with BitMover was required. “I decided that I can’t continue using BK, but that I really didn’t want to go back to the bad old pre-BK days,” Torvalds recalled in a 2015 interview with the Linux Foundation. Thus the idea of Git was born.

  Get a Britannica Premium subscription and gain access to exclusive content. Subscribe Now Git’s initial framework came together in a little over a week. The program handled version control for Linux projects but soon expanded to other collaborative and open-source projects. Git has occasionally been criticized for its complicated user interface, with even prolific developer Andrew Morton saying that Git is “expressly designed to make you feel less intelligent than you thought you were.” Still, Torvalds maintains that such user experience differences from other DVCS and CVS products are necessary for Git to function. In 2023 Stack Overflow, a coding forum site, reported that its survey of more than 73,000 software developers had found that 93 percent of respondents were using Git as their primary version control system.

Comments
Welcome to zpostcode comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Recommend >
What’s the difference between river otters and sea otters?
  While river otters and sea otters might appear similar at first glance, the two exhibit many striking differences beyond their aquatic habitats. Although the term sea otter refers to only one species—Enhydra lutris—river otter applies to multiple species in the genus Lontra, which includes the well-known North American river otter (L. canadensis), as well as otters of the genera Aonyx,...
What Does the Easter Bunny Have to Do with Jesus?
     Easter greeting cardA vintage Easter greeting card featuring an Easter Bunny and an Easter egg, c. 1900.(more)The Easter Bunny is an odd character to associate with the Christian festival celebrating the Resurrection of Jesus Christ. Just as Santa Claus has become synonymous with Christmas, the festival celebrating Jesus’ birth, the Easter Bunny has become one of the most-recognized symbols...
Audrey Tang
  In full: Audrey Tang Feng (Show more) Born: April 18, 1981, Taipei, Taiwan (Show more) Audrey Tang (born April 18, 1981, Taipei, Taiwan) is a prolific Taiwanese software developer who became both the youngest and the first transgender and nonbinary member of the Taiwanese government’s cabinet. Tang has championed efforts to integrate technology into government functions and to promote governmental...
Timeline: The History of Mattel
  Like many iconic American companies, Mattel sprang from modest roots. Begun in a garage in 1945 by a husband and wife and their friend, the company—then known as Mattel Creations—had yet to embrace toy making as a way to success. That changed in 1947 with the introduction of a toy ukulele that was designed to make learning music fun for...
Information Recommendation
Eclipses in 2024, 2025, and 2026
  Eclipses are of two kinds: solar and lunar. Solar eclipses occur when the Moon comes between the Sun and Earth. Such eclipses are either total, when the Moon completely blocks the Sun; annular, when the Moon is far from Earth and so covers the central part of the Sun, allowing the narrow ring of the Sun’s edge to shine around...
U.S. Army Camel Corps
  U.S. Army Camel Corps, a failed experiment in the mid-1800s by the United States Army to introduce camels as beasts of burden in desert regions of the American Southwest. It was hoped that camels would be an effective replacement for horses and mules, which were adversely affected by the region’s extreme temperatures. Although the Camel Corps was never officially constituted...
Marianne Williamson
  Born: July 8, 1952, Houston, Texas, U.S. (age 71) (Show more) Marianne Williamson (born July 8, 1952, Houston, Texas, U.S.) is an American author, politician, and spiritual leader who was initially best known for her role as a New Age self-help guru, author, and speaker. She was later known for seeking the Democratic nomination for president for the 2020 election...
National Recording Registry
  National Recording Registry, list of audio recordings selected for preservation by the head of the U.S. Library of Congress in consultation with the National Recording Preservation Board. Every year, 25 recordings that are deemed to be, in the words of the National Recording Preservation Act of 2000, “culturally, historically, or aesthetically significant” are added to the registry. The selections include...
Trinity College Dublin
     Trinity College DublinThe front square and campanile of Trinity College Dublin.(more)Trinity College Dublin, the oldest university in Ireland, founded in 1592 by Queen Elizabeth I of England and Ireland and endowed by the city of Dublin. The two names of the school—the University of Dublin and Trinity College Dublin—are used interchangeably, though there are legal and other differences between...
How Does a Double-Helix Staircase Work?
  The Château de Chambord is an immense castle in France’s Loire River valley that boasts a treasure trove of stunning artworks and architectural wonders. One of the most impressive of these is a 16th-century double-helix staircase, located at the heart of the château, that allows visitors to ascend and descend at the same time without encountering each other on the...
Bankruptcy, credit counseling, and debtor education: 6 things to know
     If you’re thinking about declaring bankruptcy, then you’ll need to know something about credit counseling, because it’s typically required before and after the bankruptcy filing process.   Bankruptcy-related credit counseling is highly regulated at both the federal and state levels to protect your rights and interests. The Federal Trade Commission regulates all credit counseling agencies, while the Department of Justice...
Need financial help? Finding and working with a credit counselor
     What’s it like to work with a credit counselor? How do you find one (and how do you know if you’ve found the right one for you)? If you’re just learning about the credit counseling process, then perhaps you’re already pondering these questions. Credit counselors typically organize into agencies, but ultimately the attention that you receive to improve your...