aboutsummaryrefslogtreecommitdiff
path: root/Documentation/config.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-02-11 13:43:56 -0800
committerJunio C Hamano <gitster@pobox.com>2015-02-11 13:43:56 -0800
commitcba07bb6ff58da5aa4538c4a2bbf70b717b172b3 (patch)
tree9c81fde7d29150ab4c484a5078d88378f376874f /Documentation/config.txt
parent39fa6112ec8492f9300765e1f71e7c8ecfafc713 (diff)
parent0855331941b723b227e93b33955bbe0b45025659 (diff)
downloadgit-cba07bb6ff58da5aa4538c4a2bbf70b717b172b3.tar.gz
git-cba07bb6ff58da5aa4538c4a2bbf70b717b172b3.tar.xz
Merge branch 'jc/push-to-checkout'
Extending the js/push-to-deploy topic, the behaviour of "git push" when updating the working tree and the index with an update to the branch that is checked out can be tweaked by push-to-checkout hook. * jc/push-to-checkout: receive-pack: support push-to-checkout hook receive-pack: refactor updateInstead codepath
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r--Documentation/config.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 1a54eae8f..ae6791db1 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -2158,11 +2158,15 @@ receive.denyCurrentBranch::
message. Defaults to "refuse".
+
Another option is "updateInstead" which will update the working
-directory (must be clean) if pushing into the current branch. This option is
+tree if pushing into the current branch. This option is
intended for synchronizing working directories when one side is not easily
accessible via interactive ssh (e.g. a live web site, hence the requirement
that the working directory be clean). This mode also comes in handy when
developing inside a VM to test and fix code on different Operating Systems.
++
+By default, "updateInstead" will refuse the push if the working tree or
+the index have any difference from the HEAD, but the `push-to-checkout`
+hook can be used to customize this. See linkgit:githooks[5].
receive.denyNonFastForwards::
If set to true, git-receive-pack will deny a ref update which is