CINXE.COM
Git - git-push 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 - git-push Documentation</title> <link href="/favicon.ico" rel='shortcut icon' type='image/x-icon'> <link rel="stylesheet" href="/application.min.css"> </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" class="active">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"> <div id='reference-version'> <a class="dropdown-trigger" id="reference-languages-trigger" data-panel-id="l10n-versions-dropdown" href="#"> English ▾</a> <div class='dropdown-panel right' id='l10n-versions-dropdown'> <header>Localized versions of <strong>git-push</strong> manual</header> <ol class='reference-previous-versions'> <li> <a href="/docs/git-push"><span class="version">English</span> </a> </li> <li> <a href="/docs/git-push/fr"><span class="version">Français</span> </a> </li> <li> <a href="/docs/git-push/pt_BR"><span class="version">Português (Brasil)</span> </a> </li> <li> <a href="/docs/git-push/zh_HANS-CN"><span class="version">简体中文</span> </a> </li> </ol> <footer> Want to read in your language or fix typos?<br/> <a href="https://github.com/jnavila/git-manpages-l10n">You can help translate this page</a>. </footer> </div> <a class="dropdown-trigger" id="reference-topics-trigger" data-panel-id="topics-dropdown" href="#">Topics ▾</a> <div class='dropdown-panel right' id='topics-dropdown'> <div class='three-column'> <div class='column-left'> <h3 class='setup'>Setup and Config</h3> <ul class='unstyled'> <li> <a href="/docs/git"> git </a> </li> <li> <a href="/docs/git-config"> config </a> </li> <li> <a href="/docs/git-help"> help </a> </li> <li> <a href="/docs/git-bugreport"> bugreport </a> </li> <li> <a href="/doc/credential-helpers"> Credential helpers </a> </li> </ul> <h3 class='projects'>Getting and Creating Projects</h3> <ul class='unstyled'> <li> <a href="/docs/git-init"> init </a> </li> <li> <a href="/docs/git-clone"> clone </a> </li> </ul> <h3 class='snapshotting'>Basic Snapshotting</h3> <ul class='unstyled'> <li> <a href="/docs/git-add"> add </a> </li> <li> <a href="/docs/git-status"> status </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-commit"> commit </a> </li> <li> <a href="/docs/git-notes"> notes </a> </li> <li> <a href="/docs/git-restore"> restore </a> </li> <li> <a href="/docs/git-reset"> reset </a> </li> <li> <a href="/docs/git-rm"> rm </a> </li> <li> <a href="/docs/git-mv"> mv </a> </li> </ul> <h3 class='branching'>Branching and Merging</h3> <ul class='unstyled'> <li> <a href="/docs/git-branch"> branch </a> </li> <li> <a href="/docs/git-checkout"> checkout </a> </li> <li> <a href="/docs/git-switch"> switch </a> </li> <li> <a href="/docs/git-merge"> merge </a> </li> <li> <a href="/docs/git-mergetool"> mergetool </a> </li> <li> <a href="/docs/git-log"> log </a> </li> <li> <a href="/docs/git-stash"> stash </a> </li> <li> <a href="/docs/git-tag"> tag </a> </li> <li> <a href="/docs/git-worktree"> worktree </a> </li> </ul> <h3 class='sharing'>Sharing and Updating Projects</h3> <ul class='unstyled'> <li> <a href="/docs/git-fetch"> fetch </a> </li> <li> <a href="/docs/git-pull"> pull </a> </li> <li> <a href="/docs/git-push"> push </a> </li> <li> <a href="/docs/git-remote"> remote </a> </li> <li> <a href="/docs/git-submodule"> submodule </a> </li> </ul> </div> <div class='column-middle'> <h3 class='inspection'>Inspection and Comparison</h3> <ul class='unstyled'> <li> <a href="/docs/git-show"> show </a> </li> <li> <a href="/docs/git-log"> log </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-difftool"> difftool </a> </li> <li> <a href="/docs/git-range-diff"> range-diff </a> </li> <li> <a href="/docs/git-shortlog"> shortlog </a> </li> <li> <a href="/docs/git-describe"> describe </a> </li> </ul> <h3 class='patching'>Patching</h3> <ul class='unstyled'> <li> <a href="/docs/git-apply"> apply </a> </li> <li> <a href="/docs/git-cherry-pick"> cherry-pick </a> </li> <li> <a href="/docs/git-diff"> diff </a> </li> <li> <a href="/docs/git-rebase"> rebase </a> </li> <li> <a href="/docs/git-revert"> revert </a> </li> </ul> <h3 class='debugging'>Debugging</h3> <ul class='unstyled'> <li> <a href="/docs/git-bisect"> bisect </a> </li> <li> <a href="/docs/git-blame"> blame </a> </li> <li> <a href="/docs/git-grep"> grep </a> </li> </ul> <h3 class='email'>Email</h3> <ul class='unstyled'> <li> <a href="/docs/git-am"> am </a> </li> <li> <a href="/docs/git-apply"> apply </a> </li> <li> <a href="/docs/git-format-patch"> format-patch </a> </li> <li> <a href="/docs/git-send-email"> send-email </a> </li> <li> <a href="/docs/git-request-pull"> request-pull </a> </li> </ul> <h3 class='external'>External Systems</h3> <ul class='unstyled'> <li> <a href="/docs/git-svn"> svn </a> </li> <li> <a href="/docs/git-fast-import"> fast-import </a> </li> </ul> <h3 class='server-admin'>Server Admin</h3> <ul class='unstyled'> <li> <a href="/docs/git-daemon"> daemon </a> </li> <li> <a href="/docs/git-update-server-info"> update-server-info </a> </li> </ul> </div> <div class='column-right'> <h3 class='guides'>Guides</h3> <ul class='unstyled'> <li> <a href="/docs/gitattributes"> gitattributes </a> </li> <li> <a href="/docs/gitcli"> Command-line interface conventions </a> </li> <li> <a href="/docs/giteveryday"> Everyday Git </a> </li> <li> <a href="/docs/gitfaq"> Frequently Asked Questions (FAQ) </a> </li> <li> <a href="/docs/gitglossary"> Glossary </a> </li> <li> <a href="/docs/githooks"> Hooks </a> </li> <li> <a href="/docs/gitignore"> gitignore </a> </li> <li> <a href="/docs/gitmodules"> gitmodules </a> </li> <li> <a href="/docs/gitrevisions"> Revisions </a> </li> <li> <a href="/docs/gitsubmodules"> Submodules </a> </li> <li> <a href="/docs/gittutorial"> Tutorial </a> </li> <li> <a href="/docs/gitworkflows"> Workflows </a> </li> <li> <a href="/docs/git#_guides"> All guides... </a> </li> </ul> <h3 class='admin'>Administration</h3> <ul class='unstyled'> <li> <a href="/docs/git-clean"> clean </a> </li> <li> <a href="/docs/git-gc"> gc </a> </li> <li> <a href="/docs/git-fsck"> fsck </a> </li> <li> <a href="/docs/git-reflog"> reflog </a> </li> <li> <a href="/docs/git-filter-branch"> filter-branch </a> </li> <li> <a href="/docs/git-instaweb"> instaweb </a> </li> <li> <a href="/docs/git-archive"> archive </a> </li> <li> <a href="/docs/git-bundle"> bundle </a> </li> </ul> <h3 class='plumbing'>Plumbing Commands</h3> <ul class='unstyled'> <li> <a href="/docs/git-cat-file"> cat-file </a> </li> <li> <a href="/docs/git-check-ignore"> check-ignore </a> </li> <li> <a href="/docs/git-checkout-index"> checkout-index </a> </li> <li> <a href="/docs/git-commit-tree"> commit-tree </a> </li> <li> <a href="/docs/git-count-objects"> count-objects </a> </li> <li> <a href="/docs/git-diff-index"> diff-index </a> </li> <li> <a href="/docs/git-for-each-ref"> for-each-ref </a> </li> <li> <a href="/docs/git-hash-object"> hash-object </a> </li> <li> <a href="/docs/git-ls-files"> ls-files </a> </li> <li> <a href="/docs/git-ls-tree"> ls-tree </a> </li> <li> <a href="/docs/git-merge-base"> merge-base </a> </li> <li> <a href="/docs/git-read-tree"> read-tree </a> </li> <li> <a href="/docs/git-rev-list"> rev-list </a> </li> <li> <a href="/docs/git-rev-parse"> rev-parse </a> </li> <li> <a href="/docs/git-show-ref"> show-ref </a> </li> <li> <a href="/docs/git-symbolic-ref"> symbolic-ref </a> </li> <li> <a href="/docs/git-update-index"> update-index </a> </li> <li> <a href="/docs/git-update-ref"> update-ref </a> </li> <li> <a href="/docs/git-verify-pack"> verify-pack </a> </li> <li> <a href="/docs/git-write-tree"> write-tree </a> </li> </ul> </div> </div> </div> <a class="dropdown-trigger" id="reference-versions-trigger" data-panel-id="previous-versions-dropdown" href="#"> Version 2.2.3 ▾ </a> <span class="light d-flex">git-push last updated in 2.48.0</span> <div class='dropdown-panel left' id='previous-versions-dropdown'> <header>Changes in the <strong>git-push</strong> manual</header> <ol class='reference-previous-versions'> <li class="no-change"><span>2.48.1 → 2.49.0 no changes</span></li> <li> <a href="/docs/git-push/2.48.0"><span class="version">2.48.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2025-01-10</em> </a> </li> <li class="no-change"><span>2.45.1 → 2.47.2 no changes</span></li> <li> <a href="/docs/git-push/2.45.0"><span class="version">2.45.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2024-04-29</em> </a> </li> <li class="no-change"><span>2.44.1 → 2.44.3 no changes</span></li> <li> <a href="/docs/git-push/2.44.0"><span class="version">2.44.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2024-02-23</em> </a> </li> <li class="no-change"><span>2.43.1 → 2.43.6 no changes</span></li> <li> <a href="/docs/git-push/2.43.0"><span class="version">2.43.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2023-11-20</em> </a> </li> <li class="no-change"><span>2.42.2 → 2.42.4 no changes</span></li> <li> <a href="/docs/git-push/2.42.1"><span class="version">2.42.1</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2023-11-02</em> </a> </li> <li> <a href="/docs/git-push/2.42.0"><span class="version">2.42.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2023-08-21</em> </a> </li> <li class="no-change"><span>2.41.1 → 2.41.3 no changes</span></li> <li> <a href="/docs/git-push/2.41.0"><span class="version">2.41.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2023-06-01</em> </a> </li> <li class="no-change"><span>2.40.1 → 2.40.4 no changes</span></li> <li> <a href="/docs/git-push/2.40.0"><span class="version">2.40.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2023-03-12</em> </a> </li> <li class="no-change"><span>2.39.1 → 2.39.5 no changes</span></li> <li> <a href="/docs/git-push/2.39.0"><span class="version">2.39.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2022-12-12</em> </a> </li> <li class="no-change"><span>2.38.1 → 2.38.5 no changes</span></li> <li> <a href="/docs/git-push/2.38.0"><span class="version">2.38.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2022-10-02</em> </a> </li> <li class="no-change"><span>2.35.1 → 2.37.7 no changes</span></li> <li> <a href="/docs/git-push/2.35.0"><span class="version">2.35.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2022-01-24</em> </a> </li> <li class="no-change"><span>2.33.1 → 2.34.8 no changes</span></li> <li> <a href="/docs/git-push/2.33.0"><span class="version">2.33.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2021-08-16</em> </a> </li> <li class="no-change"><span>2.32.1 → 2.32.7 no changes</span></li> <li> <a href="/docs/git-push/2.32.0"><span class="version">2.32.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2021-06-06</em> </a> </li> <li class="no-change"><span>2.30.1 → 2.31.8 no changes</span></li> <li> <a href="/docs/git-push/2.30.0"><span class="version">2.30.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2020-12-27</em> </a> </li> <li class="no-change"><span>2.25.1 → 2.29.3 no changes</span></li> <li> <a href="/docs/git-push/2.25.0"><span class="version">2.25.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2020-01-13</em> </a> </li> <li class="no-change"><span>2.23.1 → 2.24.4 no changes</span></li> <li> <a href="/docs/git-push/2.23.0"><span class="version">2.23.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2019-08-16</em> </a> </li> <li class="no-change"><span>2.22.1 → 2.22.5 no changes</span></li> <li> <a href="/docs/git-push/2.22.0"><span class="version">2.22.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2019-06-07</em> </a> </li> <li class="no-change"><span>2.21.1 → 2.21.4 no changes</span></li> <li> <a href="/docs/git-push/2.21.0"><span class="version">2.21.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2019-02-24</em> </a> </li> <li class="no-change"><span>2.20.1 → 2.20.5 no changes</span></li> <li> <a href="/docs/git-push/2.20.0"><span class="version">2.20.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2018-12-09</em> </a> </li> <li class="no-change"><span>2.18.1 → 2.19.6 no changes</span></li> <li> <a href="/docs/git-push/2.18.0"><span class="version">2.18.0</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2018-06-21</em> </a> </li> <li class="no-change"><span>2.17.0 → 2.17.6 no changes</span></li> <li> <a href="/docs/git-push/2.16.6"><span class="version">2.16.6</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2019-12-06</em> </a> </li> <li> <a href="/docs/git-push/2.15.4"><span class="version">2.15.4</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2019-12-06</em> </a> </li> <li class="no-change"><span>2.14.6 no changes</span></li> <li> <a href="/docs/git-push/2.13.7"><span class="version">2.13.7</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2018-05-22</em> </a> </li> <li> <a href="/docs/git-push/2.12.5"><span class="version">2.12.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-09-22</em> </a> </li> <li> <a href="/docs/git-push/2.11.4"><span class="version">2.11.4</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-09-22</em> </a> </li> <li> <a href="/docs/git-push/2.10.5"><span class="version">2.10.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-09-22</em> </a> </li> <li> <a href="/docs/git-push/2.9.5"><span class="version">2.9.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-07-30</em> </a> </li> <li> <a href="/docs/git-push/2.8.6"><span class="version">2.8.6</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-07-30</em> </a> </li> <li> <a href="/docs/git-push/2.7.6"><span class="version">2.7.6</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-07-30</em> </a> </li> <li> <a href="/docs/git-push/2.6.7"><span class="version">2.6.7</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-05-05</em> </a> </li> <li class="no-change"><span>2.5.6 no changes</span></li> <li> <a href="/docs/git-push/2.4.12"><span class="version">2.4.12</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2017-05-05</em> </a> </li> <li> <a href="/docs/git-push/2.3.10"><span class="version">2.3.10</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2015-09-28</em> </a> </li> <li> <a href="/docs/git-push/2.2.3"><span class="version">2.2.3</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2015-09-04</em> </a> </li> <li class="no-change"><span>2.1.4 no changes</span></li> <li> <a href="/docs/git-push/2.0.5"><span class="version">2.0.5</span> <span class="diff"> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/green-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/red-dot.png" /> <img src="/images/icons/grey-dot.png" /> <img src="/images/icons/grey-dot.png" /> </span> <em class="date">2014-12-17</em> </a> </li> <li> </li> </ol> <footer> <p>Check your version of git by running</p> <code class="command">git --version</code> </footer> </div> </div> <div id="main"> <div class="sect1"> <h2 id="_name"><a class="anchor" href="#_name"></a>NAME</h2> <div class="sectionbody"> <div class="paragraph"> <p>git-push - Update remote refs along with associated objects</p> </div> </div> </div> <div class="sect1"> <h2 id="_synopsis"><a class="anchor" href="#_synopsis"></a>SYNOPSIS</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content"><em>git push</em> [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>] [--repo=<repository>] [-f | --force] [--prune] [-v | --verbose] [-u | --set-upstream] [--signed] [--force-with-lease[=<refname>[:<expect>]]] [--no-verify] [<repository> [<refspec>…​]]</pre> </div> </div> </div> <div class="sect1"> <h2 id="_description"><a class="anchor" href="#_description"></a>DESCRIPTION</h2> <div class="sectionbody"> <div class="paragraph"> <p>Updates remote refs using local refs, while sending objects necessary to complete the given refs.</p> </div> <div class="paragraph"> <p>You can make interesting things happen to a repository every time you push into it, by setting up <em>hooks</em> there. See documentation for <a href='/docs/git-receive-pack'>git-receive-pack[1]</a>.</p> </div> <div class="paragraph"> <p>When the command line does not specify where to push with the <code><repository></code> argument, <code>branch.*.remote</code> configuration for the current branch is consulted to determine where to push. If the configuration is missing, it defaults to <em>origin</em>.</p> </div> <div class="paragraph"> <p>When the command line does not specify what to push with <code><refspec>...</code> arguments or <code>--all</code>, <code>--mirror</code>, <code>--tags</code> options, the command finds the default <code><refspec></code> by consulting <code>remote.*.push</code> configuration, and if it is not found, honors <code>push.default</code> configuration to decide what to push (See <a href='/docs/git-config'>git-config[1]</a> for the meaning of <code>push.default</code>).</p> </div> </div> </div> <div class="sect1"> <h2 id="_options"><a class="anchor" href="#_options"></a>OPTIONS<a id="OPTIONS"></a></h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-push.txt-ltrepositorygt"> <a class="anchor" href="#Documentation/git-push.txt-ltrepositorygt"></a><repository> </dt> <dd> <p>The "remote" repository that is destination of a push operation. This parameter can be either a URL (see the section <a href="#URLS">GIT URLS</a> below) or the name of a remote (see the section <a href="#REMOTES">REMOTES</a> below).</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-ltrefspecgt82308203"> <a class="anchor" href="#Documentation/git-push.txt-ltrefspecgt82308203"></a><refspec>…​ </dt> <dd> <p>Specify what destination ref to update with what source object. The format of a <refspec> parameter is an optional plus <code>+</code>, followed by the source object <src>, followed by a colon <code>:</code>, followed by the destination ref <dst>.</p> <div class="paragraph"> <p>The <src> is often the name of the branch you would want to push, but it can be any arbitrary "SHA-1 expression", such as <code>master~4</code> or <code>HEAD</code> (see <a href='/docs/gitrevisions'>gitrevisions[7]</a>).</p> </div> <div class="paragraph"> <p>The <dst> tells which ref on the remote side is updated with this push. Arbitrary expressions cannot be used here, an actual ref must be named. If <code>git push [<repository>]</code> without any <code><refspec></code> argument is set to update some ref at the destination with <code><src></code> with <code>remote.<repository>.push</code> configuration variable, <code>:<dst></code> part can be omitted---such a push will update a ref that <code><src></code> normally updates without any <code><refspec></code> on the command line. Otherwise, missing <code>:<dst></code> means to update the same ref as the <code><src></code>.</p> </div> <div class="paragraph"> <p>The object referenced by <src> is used to update the <dst> reference on the remote side. By default this is only allowed if <dst> is not a tag (annotated or lightweight), and then only if it can fast-forward <dst>. By having the optional leading <code>+</code>, you can tell Git to update the <dst> ref even if it is not allowed by default (e.g., it is not a fast-forward.) This does <strong>not</strong> attempt to merge <src> into <dst>. See EXAMPLES below for details.</p> </div> <div class="paragraph"> <p><code>tag <tag></code> means the same as <code>refs/tags/<tag>:refs/tags/<tag></code>.</p> </div> <div class="paragraph"> <p>Pushing an empty <src> allows you to delete the <dst> ref from the remote repository.</p> </div> <div class="paragraph"> <p>The special refspec <code>:</code> (or <code>+:</code> to allow non-fast-forward updates) directs Git to push "matching" branches: for every branch that exists on the local side, the remote side is updated if a branch of the same name already exists on the remote side.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---all"> <a class="anchor" href="#Documentation/git-push.txt---all"></a>--all </dt> <dd> <p>Push all branches (i.e. refs under <code>refs/heads/</code>); cannot be used with other <refspec>.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---prune"> <a class="anchor" href="#Documentation/git-push.txt---prune"></a>--prune </dt> <dd> <p>Remove remote branches that don’t have a local counterpart. For example a remote branch <code>tmp</code> will be removed if a local branch with the same name doesn’t exist any more. This also respects refspecs, e.g. <code>git push --prune remote refs/heads/*:refs/tmp/*</code> would make sure that remote <code>refs/tmp/foo</code> will be removed if <code>refs/heads/foo</code> doesn’t exist.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---mirror"> <a class="anchor" href="#Documentation/git-push.txt---mirror"></a>--mirror </dt> <dd> <p>Instead of naming each ref to push, specifies that all refs under <code>refs/</code> (which includes but is not limited to <code>refs/heads/</code>, <code>refs/remotes/</code>, and <code>refs/tags/</code>) be mirrored to the remote repository. Newly created local refs will be pushed to the remote end, locally updated refs will be force updated on the remote end, and deleted refs will be removed from the remote end. This is the default if the configuration option <code>remote.<remote>.mirror</code> is set.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt--n"> <a class="anchor" href="#Documentation/git-push.txt--n"></a>-n </dt> <dt class="hdlist1" id="Documentation/git-push.txt---dry-run"> <a class="anchor" href="#Documentation/git-push.txt---dry-run"></a>--dry-run </dt> <dd> <p>Do everything except actually send the updates.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---porcelain"> <a class="anchor" href="#Documentation/git-push.txt---porcelain"></a>--porcelain </dt> <dd> <p>Produce machine-readable output. The output status line for each ref will be tab-separated and sent to stdout instead of stderr. The full symbolic names of the refs will be given.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---delete"> <a class="anchor" href="#Documentation/git-push.txt---delete"></a>--delete </dt> <dd> <p>All listed refs are deleted from the remote repository. This is the same as prefixing all refs with a colon.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---tags"> <a class="anchor" href="#Documentation/git-push.txt---tags"></a>--tags </dt> <dd> <p>All refs under <code>refs/tags</code> are pushed, in addition to refspecs explicitly listed on the command line.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---follow-tags"> <a class="anchor" href="#Documentation/git-push.txt---follow-tags"></a>--follow-tags </dt> <dd> <p>Push all the refs that would be pushed without this option, and also push annotated tags in <code>refs/tags</code> that are missing from the remote but are pointing at commit-ish that are reachable from the refs being pushed.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---signed"> <a class="anchor" href="#Documentation/git-push.txt---signed"></a>--signed </dt> <dd> <p>GPG-sign the push request to update refs on the receiving side, to allow it to be checked by the hooks and/or be logged. See <a href='/docs/git-receive-pack'>git-receive-pack[1]</a> for the details on the receiving end.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---receive-packltgit-receive-packgt"> <a class="anchor" href="#Documentation/git-push.txt---receive-packltgit-receive-packgt"></a>--receive-pack=<git-receive-pack> </dt> <dt class="hdlist1" id="Documentation/git-push.txt---execltgit-receive-packgt"> <a class="anchor" href="#Documentation/git-push.txt---execltgit-receive-packgt"></a>--exec=<git-receive-pack> </dt> <dd> <p>Path to the <em>git-receive-pack</em> program on the remote end. Sometimes useful when pushing to a remote repository over ssh, and you do not have the program in a directory on the default $PATH.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---no-force-with-lease"> <a class="anchor" href="#Documentation/git-push.txt---no-force-with-lease"></a>--[no-]force-with-lease </dt> <dt class="hdlist1" id="Documentation/git-push.txt---force-with-leaseltrefnamegt"> <a class="anchor" href="#Documentation/git-push.txt---force-with-leaseltrefnamegt"></a>--force-with-lease=<refname> </dt> <dt class="hdlist1" id="Documentation/git-push.txt---force-with-leaseltrefnamegtltexpectgt"> <a class="anchor" href="#Documentation/git-push.txt---force-with-leaseltrefnamegtltexpectgt"></a>--force-with-lease=<refname>:<expect> </dt> <dd> <p>Usually, "git push" refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it.</p> <div class="paragraph"> <p>This option bypasses the check, but instead requires that the current value of the ref to be the expected value. "git push" fails otherwise.</p> </div> <div class="paragraph"> <p>Imagine that you have to rebase what you have already published. You will have to bypass the "must fast-forward" rule in order to replace the history you originally published with the rebased history. If somebody else built on top of your original history while you are rebasing, the tip of the branch at the remote may advance with her commit, and blindly pushing with <code>--force</code> will lose her work.</p> </div> <div class="paragraph"> <p>This option allows you to say that you expect the history you are updating is what you rebased and want to replace. If the remote ref still points at the commit you specified, you can be sure that no other people did anything to the ref (it is like taking a "lease" on the ref without explicitly locking it, and you update the ref while making sure that your earlier "lease" is still valid).</p> </div> <div class="paragraph"> <p><code>--force-with-lease</code> alone, without specifying the details, will protect all remote refs that are going to be updated by requiring their current value to be the same as the remote-tracking branch we have for them, unless specified with a <code>--force-with-lease=<refname>:<expect></code> option that explicitly states what the expected value is.</p> </div> <div class="paragraph"> <p><code>--force-with-lease=<refname></code>, without specifying the expected value, will protect the named ref (alone), if it is going to be updated, by requiring its current value to be the same as the remote-tracking branch we have for it.</p> </div> <div class="paragraph"> <p><code>--force-with-lease=<refname>:<expect></code> will protect the named ref (alone), if it is going to be updated, by requiring its current value to be the same as the specified value <expect> (which is allowed to be different from the remote-tracking branch we have for the refname, or we do not even have to have such a remote-tracking branch when this form is used).</p> </div> <div class="paragraph"> <p>Note that all forms other than <code>--force-with-lease=<refname>:<expect></code> that specifies the expected current value of the ref explicitly are still experimental and their semantics may change as we gain experience with this feature.</p> </div> <div class="paragraph"> <p>"--no-force-with-lease" will cancel all the previous --force-with-lease on the command line.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt--f"> <a class="anchor" href="#Documentation/git-push.txt--f"></a>-f </dt> <dt class="hdlist1" id="Documentation/git-push.txt---force"> <a class="anchor" href="#Documentation/git-push.txt---force"></a>--force </dt> <dd> <p>Usually, the command refuses to update a remote ref that is not an ancestor of the local ref used to overwrite it. Also, when <code>--force-with-lease</code> option is used, the command refuses to update a remote ref whose current value does not match what is expected.</p> <div class="paragraph"> <p>This flag disables these checks, and can cause the remote repository to lose commits; use it with care.</p> </div> <div class="paragraph"> <p>Note that <code>--force</code> applies to all the refs that are pushed, hence using it with <code>push.default</code> set to <code>matching</code> or with multiple push destinations configured with <code>remote.*.push</code> may overwrite refs other than the current branch (including local refs that are strictly behind their remote counterpart). To force a push to only one branch, use a <code>+</code> in front of the refspec to push (e.g <code>git push origin +master</code> to force a push to the <code>master</code> branch). See the <code><refspec>...</code> section above for details.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---repoltrepositorygt"> <a class="anchor" href="#Documentation/git-push.txt---repoltrepositorygt"></a>--repo=<repository> </dt> <dd> <p>This option is only relevant if no <repository> argument is passed in the invocation. In this case, <em>git push</em> derives the remote name from the current branch: If it tracks a remote branch, then that remote repository is pushed to. Otherwise, the name "origin" is used. For this latter case, this option can be used to override the name "origin". In other words, the difference between these two commands</p> <div class="listingblock"> <div class="content"> <pre>git push public #1 git push --repo=public #2</pre> </div> </div> <div class="paragraph"> <p>is that #1 always pushes to "public" whereas #2 pushes to "public" only if the current branch does not track a remote branch. This is useful if you write an alias or script around <em>git push</em>.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt--u"> <a class="anchor" href="#Documentation/git-push.txt--u"></a>-u </dt> <dt class="hdlist1" id="Documentation/git-push.txt---set-upstream"> <a class="anchor" href="#Documentation/git-push.txt---set-upstream"></a>--set-upstream </dt> <dd> <p>For every branch that is up to date or successfully pushed, add upstream (tracking) reference, used by argument-less <a href='/docs/git-pull'>git-pull[1]</a> and other commands. For more information, see <em>branch.<name>.merge</em> in <a href='/docs/git-config'>git-config[1]</a>.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---no-thin"> <a class="anchor" href="#Documentation/git-push.txt---no-thin"></a>--[no-]thin </dt> <dd> <p>These options are passed to <a href='/docs/git-send-pack'>git-send-pack[1]</a>. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is \--thin.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt--q"> <a class="anchor" href="#Documentation/git-push.txt--q"></a>-q </dt> <dt class="hdlist1" id="Documentation/git-push.txt---quiet"> <a class="anchor" href="#Documentation/git-push.txt---quiet"></a>--quiet </dt> <dd> <p>Suppress all output, including the listing of updated refs, unless an error occurs. Progress is not reported to the standard error stream.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt--v"> <a class="anchor" href="#Documentation/git-push.txt--v"></a>-v </dt> <dt class="hdlist1" id="Documentation/git-push.txt---verbose"> <a class="anchor" href="#Documentation/git-push.txt---verbose"></a>--verbose </dt> <dd> <p>Run verbosely.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---progress"> <a class="anchor" href="#Documentation/git-push.txt---progress"></a>--progress </dt> <dd> <p>Progress status is reported on the standard error stream by default when it is attached to a terminal, unless -q is specified. This flag forces progress status even if the standard error stream is not directed to a terminal.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---recurse-submodulescheckon-demand"> <a class="anchor" href="#Documentation/git-push.txt---recurse-submodulescheckon-demand"></a>--recurse-submodules=check|on-demand </dt> <dd> <p>Make sure all submodule commits used by the revisions to be pushed are available on a remote-tracking branch. If <em>check</em> is used Git will verify that all submodule commits that changed in the revisions to be pushed are available on at least one remote of the submodule. If any commits are missing the push will be aborted and exit with non-zero status. If <em>on-demand</em> is used all submodules that changed in the revisions to be pushed will be pushed. If on-demand was not able to push all necessary revisions it will also be aborted and exit with non-zero status.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt---no-verify"> <a class="anchor" href="#Documentation/git-push.txt---no-verify"></a>--[no-]verify </dt> <dd> <p>Toggle the pre-push hook (see <a href='/docs/githooks'>githooks[5]</a>). The default is \--verify, giving the hook a chance to prevent the push. With \--no-verify, the hook is bypassed completely.</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_git_urls"><a class="anchor" href="#_git_urls"></a>GIT URLS<a id="URLS"></a></h2> <div class="sectionbody"> <div class="paragraph"> <p>In general, URLs contain information about the transport protocol, the address of the remote server, and the path to the repository. Depending on the transport protocol, some of this information may be absent.</p> </div> <div class="paragraph"> <p>Git supports ssh, git, http, and https protocols (in addition, ftp, and ftps can be used for fetching and rsync can be used for fetching and pushing, but these are inefficient and deprecated; do not use them).</p> </div> <div class="paragraph"> <p>The native transport (i.e. git:// URL) does no authentication and should be used with caution on unsecured networks.</p> </div> <div class="paragraph"> <p>The following syntaxes may be used with them:</p> </div> <div class="ulist"> <ul> <li> <p>ssh://[user@]host.xz[:port]/path/to/repo.git/</p> </li> <li> <p>git://host.xz[:port]/path/to/repo.git/</p> </li> <li> <p>http[s]://host.xz[:port]/path/to/repo.git/</p> </li> <li> <p>ftp[s]://host.xz[:port]/path/to/repo.git/</p> </li> <li> <p>rsync://host.xz/path/to/repo.git/</p> </li> </ul> </div> <div class="paragraph"> <p>An alternative scp-like syntax may also be used with the ssh protocol:</p> </div> <div class="ulist"> <ul> <li> <p>[user@]host.xz:path/to/repo.git/</p> </li> </ul> </div> <div class="paragraph"> <p>This syntax is only recognized if there are no slashes before the first colon. This helps differentiate a local path that contains a colon. For example the local path <code>foo:bar</code> could be specified as an absolute path or <code>./foo:bar</code> to avoid being misinterpreted as an ssh url.</p> </div> <div class="paragraph"> <p>The ssh and git protocols additionally support ~username expansion:</p> </div> <div class="ulist"> <ul> <li> <p>ssh://[user@]host.xz[:port]/~[user]/path/to/repo.git/</p> </li> <li> <p>git://host.xz[:port]/~[user]/path/to/repo.git/</p> </li> <li> <p>[user@]host.xz:/~[user]/path/to/repo.git/</p> </li> </ul> </div> <div class="paragraph"> <p>For local repositories, also supported by Git natively, the following syntaxes may be used:</p> </div> <div class="ulist"> <ul> <li> <p>/path/to/repo.git/</p> </li> <li> <p>file:///path/to/repo.git/</p> </li> </ul> </div> <div class="paragraph"> <p>These two syntaxes are mostly equivalent, except when cloning, when the former implies --local option. See <a href='/docs/git-clone'>git-clone[1]</a> for details.</p> </div> <div class="paragraph"> <p>When Git doesn’t know how to handle a certain transport protocol, it attempts to use the <em>remote-<transport></em> remote helper, if one exists. To explicitly request a remote helper, the following syntax may be used:</p> </div> <div class="ulist"> <ul> <li> <p><transport>::<address></p> </li> </ul> </div> <div class="paragraph"> <p>where <address> may be a path, a server and path, or an arbitrary URL-like string recognized by the specific remote helper being invoked. See <a href='/docs/gitremote-helpers'>gitremote-helpers[1]</a> for details.</p> </div> <div class="paragraph"> <p>If there are a large number of similarly-named remote repositories and you want to use a different format for them (such that the URLs you use will be rewritten into URLs that work), you can create a configuration section of the form:</p> </div> <div class="listingblock"> <div class="content"> <pre> [url "<actual url base>"] insteadOf = <other url base></pre> </div> </div> <div class="paragraph"> <p>For example, with this:</p> </div> <div class="listingblock"> <div class="content"> <pre> [url "git://git.host.xz/"] insteadOf = host.xz:/path/to/ insteadOf = work:</pre> </div> </div> <div class="paragraph"> <p>a URL like "work:repo.git" or like "host.xz:/path/to/repo.git" will be rewritten in any context that takes a URL to be "git://git.host.xz/repo.git".</p> </div> <div class="paragraph"> <p>If you want to rewrite URLs for push only, you can create a configuration section of the form:</p> </div> <div class="listingblock"> <div class="content"> <pre> [url "<actual url base>"] pushInsteadOf = <other url base></pre> </div> </div> <div class="paragraph"> <p>For example, with this:</p> </div> <div class="listingblock"> <div class="content"> <pre> [url "ssh://example.org/"] pushInsteadOf = git://example.org/</pre> </div> </div> <div class="paragraph"> <p>a URL like "git://example.org/path/to/repo.git" will be rewritten to "ssh://example.org/path/to/repo.git" for pushes, but pulls will still use the original URL.</p> </div> </div> </div> <div class="sect1"> <h2 id="_remotes"><a class="anchor" href="#_remotes"></a>REMOTES<a id="REMOTES"></a></h2> <div class="sectionbody"> <div class="paragraph"> <p>The name of one of the following can be used instead of a URL as <code><repository></code> argument:</p> </div> <div class="ulist"> <ul> <li> <p>a remote in the Git configuration file: <code>$GIT_DIR/config</code>,</p> </li> <li> <p>a file in the <code>$GIT_DIR/remotes</code> directory, or</p> </li> <li> <p>a file in the <code>$GIT_DIR/branches</code> directory.</p> </li> </ul> </div> <div class="paragraph"> <p>All of these also allow you to omit the refspec from the command line because they each contain a refspec which git will use by default.</p> </div> <div class="sect2"> <h3 id="_named_remote_in_configuration_file"><a class="anchor" href="#_named_remote_in_configuration_file"></a>Named remote in configuration file</h3> <div class="paragraph"> <p>You can choose to provide the name of a remote which you had previously configured using <a href='/docs/git-remote'>git-remote[1]</a>, <a href='/docs/git-config'>git-config[1]</a> or even by a manual edit to the <code>$GIT_DIR/config</code> file. The URL of this remote will be used to access the repository. The refspec of this remote will be used by default when you do not provide a refspec on the command line. The entry in the config file would appear like this:</p> </div> <div class="listingblock"> <div class="content"> <pre> [remote "<name>"] url = <url> pushurl = <pushurl> push = <refspec> fetch = <refspec></pre> </div> </div> <div class="paragraph"> <p>The <code><pushurl></code> is used for pushes only. It is optional and defaults to <code><url></code>.</p> </div> </div> <div class="sect2"> <h3 id="_named_file_in_git_dirremotes"><a class="anchor" href="#_named_file_in_git_dirremotes"></a>Named file in <code>$GIT_DIR/remotes</code></h3> <div class="paragraph"> <p>You can choose to provide the name of a file in <code>$GIT_DIR/remotes</code>. The URL in this file will be used to access the repository. The refspec in this file will be used as default when you do not provide a refspec on the command line. This file should have the following format:</p> </div> <div class="listingblock"> <div class="content"> <pre> URL: one of the above URL format Push: <refspec> Pull: <refspec></pre> </div> </div> <div class="paragraph"> <p><code>Push:</code> lines are used by <em>git push</em> and <code>Pull:</code> lines are used by <em>git pull</em> and <em>git fetch</em>. Multiple <code>Push:</code> and <code>Pull:</code> lines may be specified for additional branch mappings.</p> </div> </div> <div class="sect2"> <h3 id="_named_file_in_git_dirbranches"><a class="anchor" href="#_named_file_in_git_dirbranches"></a>Named file in <code>$GIT_DIR/branches</code></h3> <div class="paragraph"> <p>You can choose to provide the name of a file in <code>$GIT_DIR/branches</code>. The URL in this file will be used to access the repository. This file should have the following format:</p> </div> <div class="listingblock"> <div class="content"> <pre> <url>#<head></pre> </div> </div> <div class="paragraph"> <p><code><url></code> is required; <code>#<head></code> is optional.</p> </div> <div class="paragraph"> <p>Depending on the operation, git will use one of the following refspecs, if you don’t provide one on the command line. <code><branch></code> is the name of this file in <code>$GIT_DIR/branches</code> and <code><head></code> defaults to <code>master</code>.</p> </div> <div class="paragraph"> <p>git fetch uses:</p> </div> <div class="listingblock"> <div class="content"> <pre> refs/heads/<head>:refs/heads/<branch></pre> </div> </div> <div class="paragraph"> <p>git push uses:</p> </div> <div class="listingblock"> <div class="content"> <pre> HEAD:refs/heads/<head></pre> </div> </div> </div> </div> </div> <div class="sect1"> <h2 id="_output"><a class="anchor" href="#_output"></a>OUTPUT</h2> <div class="sectionbody"> <div class="paragraph"> <p>The output of "git push" depends on the transport method used; this section describes the output when pushing over the Git protocol (either locally or via ssh).</p> </div> <div class="paragraph"> <p>The status of the push is output in tabular form, with each line representing the status of a single ref. Each line is of the form:</p> </div> <div class="listingblock"> <div class="content"> <pre> <flag> <summary> <from> -> <to> (<reason>)</pre> </div> </div> <div class="paragraph"> <p>If --porcelain is used, then each line of the output is of the form:</p> </div> <div class="listingblock"> <div class="content"> <pre> <flag> \t <from>:<to> \t <summary> (<reason>)</pre> </div> </div> <div class="paragraph"> <p>The status of up-to-date refs is shown only if --porcelain or --verbose option is used.</p> </div> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-push.txt-flag"> <a class="anchor" href="#Documentation/git-push.txt-flag"></a>flag </dt> <dd> <p>A single character indicating the status of the ref:</p> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-push.txt-space"> <a class="anchor" href="#Documentation/git-push.txt-space"></a>(space) </dt> <dd> <p>for a successfully pushed fast-forward;</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codecode"> <a class="anchor" href="#Documentation/git-push.txt-codecode"></a><code>+</code> </dt> <dd> <p>for a successful forced update;</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-code-code"> <a class="anchor" href="#Documentation/git-push.txt-code-code"></a><code>-</code> </dt> <dd> <p>for a successfully deleted ref;</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codecode-1"> <a class="anchor" href="#Documentation/git-push.txt-codecode-1"></a><code>*</code> </dt> <dd> <p>for a successfully pushed new ref;</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codecode-1-1"> <a class="anchor" href="#Documentation/git-push.txt-codecode-1-1"></a><code>!</code> </dt> <dd> <p>for a ref that was rejected or failed to push; and</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codecode-1-1-1"> <a class="anchor" href="#Documentation/git-push.txt-codecode-1-1-1"></a><code>=</code> </dt> <dd> <p>for a ref that was up to date and did not need pushing.</p> </dd> </dl> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-summary"> <a class="anchor" href="#Documentation/git-push.txt-summary"></a>summary </dt> <dd> <p>For a successfully pushed ref, the summary shows the old and new values of the ref in a form suitable for using as an argument to <code>git log</code> (this is <code><old>..<new></code> in most cases, and <code><old>...<new></code> for forced non-fast-forward updates).</p> <div class="paragraph"> <p>For a failed update, more details are given:</p> </div> <div class="openblock"> <div class="content"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-push.txt-rejected"> <a class="anchor" href="#Documentation/git-push.txt-rejected"></a>rejected </dt> <dd> <p>Git did not try to send the ref at all, typically because it is not a fast-forward and you did not force the update.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-remoterejected"> <a class="anchor" href="#Documentation/git-push.txt-remoterejected"></a>remote rejected </dt> <dd> <p>The remote end refused the update. Usually caused by a hook on the remote side, or because the remote repository has one of the following safety options in effect: <code>receive.denyCurrentBranch</code> (for pushes to the checked out branch), <code>receive.denyNonFastForwards</code> (for forced non-fast-forward updates), <code>receive.denyDeletes</code> or <code>receive.denyDeleteCurrent</code>. See <a href='/docs/git-config'>git-config[1]</a>.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-remotefailure"> <a class="anchor" href="#Documentation/git-push.txt-remotefailure"></a>remote failure </dt> <dd> <p>The remote end did not report the successful update of the ref, perhaps because of a temporary error on the remote side, a break in the network connection, or other transient error.</p> </dd> </dl> </div> </div> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-from"> <a class="anchor" href="#Documentation/git-push.txt-from"></a>from </dt> <dd> <p>The name of the local ref being pushed, minus its <code>refs/<type>/</code> prefix. In the case of deletion, the name of the local ref is omitted.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-to"> <a class="anchor" href="#Documentation/git-push.txt-to"></a>to </dt> <dd> <p>The name of the remote ref being updated, minus its <code>refs/<type>/</code> prefix.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-reason"> <a class="anchor" href="#Documentation/git-push.txt-reason"></a>reason </dt> <dd> <p>A human-readable explanation. In the case of successfully pushed refs, no explanation is needed. For a failed ref, the reason for failure is described.</p> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_note_about_fast_forwards"><a class="anchor" href="#_note_about_fast_forwards"></a>Note about fast-forwards</h2> <div class="sectionbody"> <div class="paragraph"> <p>When an update changes a branch (or more in general, a ref) that used to point at commit A to point at another commit B, it is called a fast-forward update if and only if B is a descendant of A.</p> </div> <div class="paragraph"> <p>In a fast-forward update from A to B, the set of commits that the original commit A built on top of is a subset of the commits the new commit B builds on top of. Hence, it does not lose any history.</p> </div> <div class="paragraph"> <p>In contrast, a non-fast-forward update will lose history. For example, suppose you and somebody else started at the same commit X, and you built a history leading to commit B while the other person built a history leading to commit A. The history looks like this:</p> </div> <div class="listingblock"> <div class="content"> <pre> B / ---X---A</pre> </div> </div> <div class="paragraph"> <p>Further suppose that the other person already pushed changes leading to A back to the original repository from which you two obtained the original commit X.</p> </div> <div class="paragraph"> <p>The push done by the other person updated the branch that used to point at commit X to point at commit A. It is a fast-forward.</p> </div> <div class="paragraph"> <p>But if you try to push, you will attempt to update the branch (that now points at A) with commit B. This does <em>not</em> fast-forward. If you did so, the changes introduced by commit A will be lost, because everybody will now start building on top of B.</p> </div> <div class="paragraph"> <p>The command by default does not allow an update that is not a fast-forward to prevent such loss of history.</p> </div> <div class="paragraph"> <p>If you do not want to lose your work (history from X to B) or the work by the other person (history from X to A), you would need to first fetch the history from the repository, create a history that contains changes done by both parties, and push the result back.</p> </div> <div class="paragraph"> <p>You can perform "git pull", resolve potential conflicts, and "git push" the result. A "git pull" will create a merge commit C between commits A and B.</p> </div> <div class="listingblock"> <div class="content"> <pre> B---C / / ---X---A</pre> </div> </div> <div class="paragraph"> <p>Updating A with the resulting merge commit will fast-forward and your push will be accepted.</p> </div> <div class="paragraph"> <p>Alternatively, you can rebase your change between X and B on top of A, with "git pull --rebase", and push the result back. The rebase will create a new commit D that builds the change between X and B on top of A.</p> </div> <div class="listingblock"> <div class="content"> <pre> B D / / ---X---A</pre> </div> </div> <div class="paragraph"> <p>Again, updating A with this commit will fast-forward and your push will be accepted.</p> </div> <div class="paragraph"> <p>There is another common situation where you may encounter non-fast-forward rejection when you try to push, and it is possible even when you are pushing into a repository nobody else pushes into. After you push commit A yourself (in the first picture in this section), replace it with "git commit --amend" to produce commit B, and you try to push it out, because forgot that you have pushed A out already. In such a case, and only if you are certain that nobody in the meantime fetched your earlier commit A (and started building on top of it), you can run "git push --force" to overwrite it. In other words, "git push --force" is a method reserved for a case where you do mean to lose history.</p> </div> </div> </div> <div class="sect1"> <h2 id="_examples"><a class="anchor" href="#_examples"></a>Examples</h2> <div class="sectionbody"> <div class="dlist"> <dl> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushcode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushcode"></a><code>git push</code> </dt> <dd> <p>Works like <code>git push <remote></code>, where <remote> is the current branch’s remote (or <code>origin</code>, if no remote is configured for the current branch).</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushorigincode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushorigincode"></a><code>git push origin</code> </dt> <dd> <p>Without additional configuration, pushes the current branch to the configured upstream (<code>remote.origin.merge</code> configuration variable) if it has the same name as the current branch, and errors out without pushing otherwise.</p> <div class="paragraph"> <p>The default behavior of this command when no <refspec> is given can be configured by setting the <code>push</code> option of the remote, or the <code>push.default</code> configuration variable.</p> </div> <div class="paragraph"> <p>For example, to default to pushing only the current branch to <code>origin</code> use <code>git config remote.origin.push HEAD</code>. Any valid <refspec> (like the ones in the examples below) can be configured as the default for <code>git push origin</code>.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushorigincode-1"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushorigincode-1"></a><code>git push origin :</code> </dt> <dd> <p>Push "matching" branches to <code>origin</code>. See <refspec> in the <a href="#OPTIONS">OPTIONS</a> section above for a description of "matching" branches.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushoriginmastercode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushoriginmastercode"></a><code>git push origin master</code> </dt> <dd> <p>Find a ref that matches <code>master</code> in the source repository (most likely, it would find <code>refs/heads/master</code>), and update the same ref (e.g. <code>refs/heads/master</code>) in <code>origin</code> repository with it. If <code>master</code> did not exist remotely, it would be created.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushoriginHEADcode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushoriginHEADcode"></a><code>git push origin HEAD</code> </dt> <dd> <p>A handy way to push the current branch to the same name on the remote.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushmothershipmastersatellitemasterdevsatellitedevcode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushmothershipmastersatellitemasterdevsatellitedevcode"></a><code>git push mothership master:satellite/master dev:satellite/dev</code> </dt> <dd> <p>Use the source ref that matches <code>master</code> (e.g. <code>refs/heads/master</code>) to update the ref that matches <code>satellite/master</code> (most probably <code>refs/remotes/satellite/master</code>) in the <code>mothership</code> repository; do the same for <code>dev</code> and <code>satellite/dev</code>.</p> <div class="paragraph"> <p>This is to emulate <code>git fetch</code> run on the <code>mothership</code> using <code>git push</code> that is run in the opposite direction in order to integrate the work done on <code>satellite</code>, and is often necessary when you can only make connection in one way (i.e. satellite can ssh into mothership but mothership cannot initiate connection to satellite because the latter is behind a firewall or does not run sshd).</p> </div> <div class="paragraph"> <p>After running this <code>git push</code> on the <code>satellite</code> machine, you would ssh into the <code>mothership</code> and run <code>git merge</code> there to complete the emulation of <code>git pull</code> that were run on <code>mothership</code> to pull changes made on <code>satellite</code>.</p> </div> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushoriginHEADmastercode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushoriginHEADmastercode"></a><code>git push origin HEAD:master</code> </dt> <dd> <p>Push the current branch to the remote ref matching <code>master</code> in the <code>origin</code> repository. This form is convenient to push the current branch without thinking about its local name.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushoriginmasterrefsheadsexperimentalcode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushoriginmasterrefsheadsexperimentalcode"></a><code>git push origin master:refs/heads/experimental</code> </dt> <dd> <p>Create the branch <code>experimental</code> in the <code>origin</code> repository by copying the current <code>master</code> branch. This form is only needed to create a new branch or tag in the remote repository when the local name and the remote name are different; otherwise, the ref name on its own will work.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushoriginexperimentalcode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushoriginexperimentalcode"></a><code>git push origin :experimental</code> </dt> <dd> <p>Find a ref that matches <code>experimental</code> in the <code>origin</code> repository (e.g. <code>refs/heads/experimental</code>), and delete it.</p> </dd> <dt class="hdlist1" id="Documentation/git-push.txt-codegitpushorigindevmastercode"> <a class="anchor" href="#Documentation/git-push.txt-codegitpushorigindevmastercode"></a><code>git push origin +dev:master</code> </dt> <dd> <p>Update the origin repository’s master branch with the dev branch, allowing non-fast-forward updates. <strong>This can leave unreferenced commits dangling in the origin repository.</strong> Consider the following situation, where a fast-forward is not possible:</p> <div class="listingblock"> <div class="content"> <pre> o---o---o---A---B origin/master \ X---Y---Z dev</pre> </div> </div> <div class="paragraph"> <p>The above command would change the origin repository to</p> </div> <div class="listingblock"> <div class="content"> <pre> A---B (unnamed branch) / o---o---o---X---Y---Z master</pre> </div> </div> <div class="paragraph"> <p>Commits A and B would no longer belong to a branch with a symbolic name, and so would be unreachable. As such, these commits would be removed by a <code>git gc</code> command on the origin repository.</p> </div> </dd> </dl> </div> </div> </div> <div class="sect1"> <h2 id="_git"><a class="anchor" href="#_git"></a>GIT</h2> <div class="sectionbody"> <div class="paragraph"> <p>Part of the <a href='/docs/git'>git[1]</a> suite</p> </div> </div> </div> <h3 hidden="true" data-pagefind-weight="10">push</h3> </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/modernizr.js"></script> <script src="/js/modernize.js"></script> <script src="/js/application.min.js"></script> </div> </body> </html>