Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>By default <code>git push</code> updates all the remote branches. But you can configure git to update only the current branch to it's upstream.</p> <pre><code>git config push.default upstream </code></pre> <p>It means git will update only the current (checked out) branch when you do git push.</p> <p>Other valid options are:</p> <ul> <li><code>nothing</code> : Do not push anything (error out) unless <strong>a refspec is explicitly given</strong>. This is primarily meant for people who want to avoid mistakes by always being explicit.</li> <li><code>matching</code> : Push all branches having the <strong>same name</strong> on both ends. (default option prior to Ver 1.7.11) </li> <li><code>upstream</code>: Push the current branch to its upstream branch. This mode only makes sense if you are pushing to the same repository you would normally pull from (i.e. <strong>central workflow</strong>). <strong>No need to have the same name</strong> for local and remote branch.</li> <li><code>tracking</code> : Deprecated, use <code>upstream</code> instead.</li> <li><code>current</code> : Push the current branch to the remote branch of the <strong>same name</strong> on the receiving end. Works in both central and non-central workflows.</li> <li><code>simple</code> : [available since Ver 1.7.11] in centralized workflow, work like <code>upstream</code> with an added safety to refuse to push if the upstream branch’s name is different from the local one. When pushing to a remote that is different from the remote you normally pull from, work as <code>current</code>. This is the safest option and is suited for beginners. This mode has become the default in Git 2.0.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload