summaryrefslogtreecommitdiff
path: root/doc/git-annex-proxy.mdwn
diff options
context:
space:
mode:
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)