]> rtime.felk.cvut.cz Git - git.git/blobdiff - Documentation/config.txt
Merge branch 'jc/push-to-checkout'
[git.git] / Documentation / config.txt
index 1a54eae8f82da26f8b9190d2ce5530bacf09f771..ae6791db128130080915bf127cfa66b850921f43 100644 (file)
@@ -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