aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-proxy.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-03 14:10:00 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-03 14:10:00 -0400
commit32ee77d86ec07d2e34c9ab47d04d666b2a0311fa (patch)
treec63687083ffa1daa15a3299411e329a3243a7d79 /doc/git-annex-proxy.mdwn
parent3115bdd5645a08be6eb6edd39072a31c4af818f2 (diff)
commit example
Diffstat (limited to 'doc/git-annex-proxy.mdwn')
-rw-r--r--doc/git-annex-proxy.mdwn6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/git-annex-proxy.mdwn b/doc/git-annex-proxy.mdwn
index 23621ea06..570789cf7 100644
--- a/doc/git-annex-proxy.mdwn
+++ b/doc/git-annex-proxy.mdwn
@@ -25,6 +25,12 @@ To rename a directory:
git annex proxy -- git mv mydir newname
+To commit the changes to a specific file, first use git annex add to
+stage the changes in the index, and then proxy a commit:
+
+ git annex add myfile
+ git annex proxy -- git commit myfile -m foo
+
# SEE ALSO
[[git-annex]](1)