zpostcode
Git
Oct 18, 2024 9:24 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 >
hardcore punk
  Also called: hardcore (Show more) Key People: Henry Rollins (Show more) hardcore punk, a genre of punk music defined by its speed and intensity, aggressive sound, and DIY (do-it-yourself) ethics. Hardcore came to the fore in a number of American cities during the late 1970s and early ’80s and spread to many other countries. It spawned several subcultures that subscribe...
1948 Arab-Israeli War
  Also called: Israel’s War of Independence or Nakba (Show more) 1948 Arab-Israeli War, an existential war fought between Israel and Arab forces from Egypt, Transjordan (Jordan), Iraq, Syria, and Lebanon. The war formally began on May 15, 1948, and ended on July 20, 1949, although it followed a civil war that began after the passage of United Nations partition plan...
Lisa Fernandez
  Born: February 22, 1971, Long Beach, California, U.S. (Show more) Lisa Fernandez (born February 22, 1971, Long Beach, California, U.S.) is an American softball player who helped lead the U.S. women’s national softball team to three consecutive Olympic gold medals (1996, 2000, and 2004). Known for her great all-around ability, she set individual Olympic records as both a pitcher and...
Where Bonnie and Clyde died—and still live on
  It is a strange thing to grow up in a town marked by killers and killing, a town in flight from its own infamy. I grew up in just such a place. A hamlet of hundreds, Gibsland, Louisiana, was not known for much until when, on May 23, 1934, Bonnie Elizabeth Parker and Clyde Chestnut Barrow, the Depression-era crime duo,...
Information Recommendation
Calculating position size in trading: The key to risk management
     Position sizing is a crucial, yet often overlooked, aspect of risk management that determines how much of a particular asset—whether it’s stocks, options, or even cryptocurrency—you should buy or sell per trade.   Position sizing involves calculating the appropriate trade size based on the entry price, stop-loss level, available capital, and the percentage of an account you’re willing to risk....
sheep breeds
  Sheep were first domesticated from wild species by at least 5000 bce and are raised for their fleece (wool), milk, and meat. The flesh of mature sheep is called mutton while that of immature animals is called lamb. Of more than 200 breeds of sheep in existence in the world, the majority are of limited interest except in the localities...
freshwater crocodile
  Also called: Australian freshwater crocodile, Johnson’s crocodile, or freshie (Show more) freshwater crocodile, (Crocodylus johnsoni), moderately large species of crocodile inhabiting inland swamps, rivers, and other tropical freshwater environments in the northern parts of Queensland, Western Australia, and Australia’s Northern Territory. The species is distinguished from other crocodiles by its gray-to-brown coloration and its narrow V-shaped snout. Freshwater crocodiles are...
Record-shattering Tonga volcanic eruption wasn't triggered by what we thought, new study suggests
Scientists have proposed an alternative explanation for why the record-shattering Tonga volcanic eruption of 2022 was so violent: The explosion may have been triggered by gas, rather than by a reaction between magma and water as previously suggested. Hunga Tonga-Hunga Ha'apai, an underwater volcano in the South Pacific Ocean, erupted on Jan. 15, 2022, unleashing the most intense lightning storm...
The Gulf Stream stopped pumping nutrients during the last ice age — and the same could be happening now
The Gulf Stream slowed dramatically at the end of the last ice age with dire effects on organisms in the Atlantic, scientists have found. This discovery could help researchers forecast how Atlantic currents will change in response to climate change today. The Gulf Stream is a warm ocean current that originates in the Florida Straits between Florida and Cuba, before...
Taiwan Strait crises
  Taiwan Strait crises, a series of confrontations between the People’s Republic of China (P.R.C.) and the Republic of China (Taiwan; R.O.C.) across the Taiwan Strait that occurred from the 1950s through the early 2020s. These incidents involved the deployment, and in some cases active use, of military forces. Experts generally recognize four distinct crises, but conflict between the two governments...
America Ferrera
  Born: April 18, 1984, Los Angeles, California, U.S. (Show more) America Ferrera (born April 18, 1984, Los Angeles, California, U.S.) is an American actress, producer, director, and activist who rose to fame with her portrayal of the upbeat, quirky, braces-wearing assistant to the editor in chief at a high-end fashion magazine in the hit series Ugly Betty (2006–10). For that...
Linda Martell
  Byname of: Thelma Louise Bynem (Show more) Born: June 4, 1941, near Leesville, South Carolina, U.S. (Show more) Linda Martell (born June 4, 1941, near Leesville, South Carolina, U.S.) is a pioneering American country music singer who was the first Black female artist to perform at the venerable Grand Ole Opry in Nashville. She had a top 25 hit (“Color...