summaryrefslogtreecommitdiff
path: root/doc/git-annex-config.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-01-30 16:41:29 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-01-30 16:46:38 -0400
commit9b17947b394cc2720b15aaf44e6fb7703ba8513f (patch)
treed97e570df7bf859031713d3963baf4be7f65bfbf /doc/git-annex-config.mdwn
parentdc2095666d7b8e39ec3e1f2f26dca7eceff34877 (diff)
config: New command for storing configuration in the git-annex branch.
Any config names can be set using this; git-annex commands will only look at specific ones that make sense and are worth the overhead of querying the branch. This might also be useful for storing whatever other config-type stuff the user might want to shove into the git-annex branch. This commit was sponsored by Jochen Bartl on Patreon.
Diffstat (limited to 'doc/git-annex-config.mdwn')
-rw-r--r--doc/git-annex-config.mdwn56
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/git-annex-config.mdwn b/doc/git-annex-config.mdwn
new file mode 100644
index 000000000..1e1819bb7
--- /dev/null
+++ b/doc/git-annex-config.mdwn
@@ -0,0 +1,56 @@
+# NAME
+
+git-annex config - configuration stored in git-annex branch
+
+# SYNOPSIS
+
+git annex config --set name value
+
+git annex config --get name
+
+git annex config --unset name
+
+# DESCRIPTION
+
+Set or get configuration settings stored in the git-annex branch.
+
+Unlike `git config` settings, these settings can be seen
+in all clones of the repository, once they have gotten their
+git-annex branches in sync.
+
+# SUPPORTED SETTINGS
+
+git-annex does not check the git-annex branch for all settings.
+Only a few make sense to be able to set such that all clones of a
+repository see the setting, and so git-annex only looks for these:
+
+These settings can be overridden on a per-repository basis using
+`git config`:
+
+None yet!
+
+# EXAMPLE
+
+Suppose you want to prevent git annex sync from committing changes
+to files, so a manual git commit workflow is used in all clones of the
+repository. Then run:
+
+ git annex config --set annex.autocommit false
+
+If you change your mind, you can get back to the default behavior:
+
+ git annex config --unset annex.autocommit
+
+# SEE ALSO
+
+[[git-annex]](1)
+
+git-config(1)
+
+[[git-annex-vicfg]](1)
+
+# AUTHOR
+
+Joey Hess <id@joeyh.name>
+
+Warning: Automatically converted into a man page by mdwn2man. Edit with care.