Merge branch 'fg/push-default'
[gitweb.git] / Documentation / config.txt
index 12540b605f4f15e93703bed226ab43c0b8d6716b..750675530cf4a15137e837c9d15acb8f23ae7cd3 100644 (file)
@@ -1194,6 +1194,24 @@ pull.octopus::
 pull.twohead::
        The default merge strategy to use when pulling a single branch.
 
+push.default::
+       Defines the action git push should take if no refspec is given
+       on the command line, no refspec is configured in the remote, and
+       no refspec is implied by any of the options given on the command
+       line.
++
+The term `current remote` means the remote configured for the current
+branch, or `origin` if no remote is configured. `origin` is also used
+if you are not on any branch. Possible values are:
++
+* `nothing` do not push anything.
+* `matching` push all matching branches to the current remote.
+  All branches having the same name in both ends are considered to be
+  matching. This is the current default value.
+* `tracking` push the current branch to the branch it is tracking.
+* `current` push the current branch to a branch of the same name on the
+  current remote.
+
 rebase.stat::
        Whether to show a diffstat of what changed upstream since the last
        rebase. False by default.