CINXE.COM
Git - Documentation
<!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript"> const currentTheme = localStorage.getItem("theme") if (currentTheme) { const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)").matches if ((prefersDarkScheme && currentTheme === "light") || (!prefersDarkScheme && currentTheme === "dark")) { document.documentElement.dataset.theme = currentTheme } } </script> <meta charset='utf-8'> <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Git - Documentation</title> <link href="/favicon.ico" rel='shortcut icon' type='image/x-icon'> <link rel="stylesheet" href="/application.min.5a9bcd9ec21b07a9e60356c8218bc26d6d6da93d54762f4ee6fd0069846598da.css" integrity="sha256-WpvNnsIbB6nmA1bIIYvCbW1tqT1Udi9O5v0AaYRlmNo="> <script src="/js/modernizr.js"></script> </head> <body id="documentation"> <div class="inner"> <header> <a id="logo" href="/"><img src="/images/logo@2x.png" width="110" height="46" alt="Git" class="no-filter" /></a> <span id="tagline"></span> <script type="text/javascript"> const taglines = [ "fast-version-control", "everything-is-local", "distributed-even-if-your-workflow-isnt", "local-branching-on-the-cheap", "distributed-is-the-new-centralized" ]; var tagline = taglines[Math.floor(Math.random() * taglines.length)]; document.getElementById('tagline').innerHTML = '--' + tagline; </script> <div id="search-container"> <form id="search" action="/search/results"> <input id="search-text" name="search" placeholder="Type / to search entire site…" autocomplete="off" type="text" /> </form> <div id="search-results"></div> </div> <img src="/images/dark-mode.svg" id="dark-mode-button" /> </header> </div> <div class="inner"> <div id="content-wrapper"> <div tabindex="1" class="sidebar-btn"></div> <aside class="sidebar" id="sidebar"> <nav> <ul> <li> <a href="/about">About</a> <ul> </ul> </li> <li> <a href="/doc" class="active">Documentation</a> <ul class="expanded"> <li> <a href="/docs">Reference</a> </li> <li> <a href="/book">Book</a> </li> <li> <a href="/videos">Videos</a> </li> <li> <a href="/doc/ext">External Links</a> </li> </ul> </li> <li> <a href="/downloads">Downloads</a> <ul > <li> <a href="/downloads/guis">GUI Clients</a> </li> <li> <a href="/downloads/logos">Logos</a> </li> </ul> </li> <li> <a href="/community">Community</a> </li> </ul> </nav> </aside> <div id="content" data-pagefind-filter="category:documentation" data-pagefind-weight="0.05" data-pagefind-body> <div id="main"> <h1> Documentation </h1> <h2> Reference </h2> <div class="callout ref-manual"> <h3><a href="/docs">Reference Manual</a></h3> <p> The official and comprehensive <strong>man pages</strong> that are included in the Git package itself. </p> </div> <p class="quickref"> Quick reference guides: <a href="https://github.github.com/training-kit/">GitHub Cheat Sheet</a> | <a href="https://ndpsoftware.com/git-cheatsheet.html">Visual Git Cheat Sheet</a> </p> <h2> Book </h2> <div class="callout ref-manual"> <h3>Pro Git</h3> <p>The entire <strong><a href="/book">Pro Git book</a></strong> written by Scott Chacon and Ben Straub is available to <a href="/book">read online for free</a>. Dead tree versions are available on <a href="https://www.amazon.com/Pro-Git-Scott-Chacon/dp/1484200772?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430218339&linkCode=as2&tag=git-sfconservancy-20">Amazon.com</a>. </p> </div> <h2> Videos </h2> <div> <div class="two-column"> <div class="column-left"> <ul class="video-thumbnails"> <li> <a href="/video/what-is-git"><img src="/images/video/ep2.png" ZgotmplZ></a> <h4> <a href="/video/what-is-git">What is Git?</a> </h4> <p class="description"> <strong>Length:</strong> 08:15 </p> </li> <li> <a href="/video/quick-wins"><img src="/images/video/ep4.png" ZgotmplZ></a> <h4> <a href="/video/quick-wins">Quick Wins with Git</a> </h4> <p class="description"> <strong>Length:</strong> 05:06 </p> </li> </ul> </div> <div class="column-right"> <ul class="video-thumbnails"> <li> <a href="/video/what-is-version-control"><img src="/images/video/ep1.png" ZgotmplZ></a> <h4> <a href="/video/what-is-version-control">What is Version Control?</a> </h4> <p class="description"> <strong>Length:</strong> 05:59 </p> </li> <li> <a href="/video/get-going"><img src="/images/video/ep3.png" ZgotmplZ></a> <h4> <a href="/video/get-going">Get Going with Git</a> </h4> <p class="description"> <strong>Length:</strong> 04:26 </p> </li> </ul> </div> </div> <p> <a href="/videos">See all videos →</a> </p> <h2> External Links </h2> <p> The <a href="/doc/ext">External Links section</a> is a curated, ever-evolving collection of tutorials, books, videos, and other Git resources. </p> </div> </div> </div> </div> <footer> <div class="site-source"> <a href="/site">About this site</a><br> Patches, suggestions, and comments are welcome. </div> <div class="sfc-member"> Git is a member of <a href="/sfc">Software Freedom Conservancy</a> </div> </footer> <a href="#top" class="no-js scrollToTop" id="scrollToTop" data-label="Scroll to top"> <img src="/images/icons/chevron-up@2x.png" width="20" height="20" alt="scroll-to-top"/> </a> <script src="/js/jquery-1.7.1.min.js"></script> <script src="/js/jquery-ui-1.8.18.custom.min.js"></script> <script src="/js/jquery.defaultvalue.js"></script> <script src="/js/session.min.js"></script> <script src="/js/application.min.41cd14770f70d5443df414cb542804bc1226e3e08ab8983cb3f360dca36ece98.js" integrity="sha256-Qc0Udw9w1UQ99BTLVCgEvBIm4+CKuJg8s/Ng3KNuzpg="></script> </div> </body> </html>