From e07931845bfee322a94cdc48c5c4b19c9276c68b Mon Sep 17 00:00:00 2001 From: falsifian Date: Sun, 3 Oct 2021 17:06:21 +0000 Subject: [PATCH] --- ...ig_to_make_git_annex_sync_only_sync_metadata__63__.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/forum/config_to_make_git_annex_sync_only_sync_metadata__63__.mdwn diff --git a/doc/forum/config_to_make_git_annex_sync_only_sync_metadata__63__.mdwn b/doc/forum/config_to_make_git_annex_sync_only_sync_metadata__63__.mdwn new file mode 100644 index 0000000000..174f4f35d2 --- /dev/null +++ b/doc/forum/config_to_make_git_annex_sync_only_sync_metadata__63__.mdwn @@ -0,0 +1,7 @@ +I would like `git annex sync` to only sync `git-annex`'s bookkeeping metadata, and *not* my master branch or file content. + +I tried setting `annex.synconlyannex = true` (in `~/.gitconfig`), and was surprised to find that although that disables syncing of my master branch, it *enables* syncing of content. + +I can add `--no-content` on the command line, but I'd rather not type that every time. Is there a way to do it purely through `~/.gitconfig`? (Maybe consider it as a feature request?) + +(Motivation: I find it jarring when git annex creates git commits on my own branches without asking me. I already set `annex.autocommit = false`, but `git annex sync` will still make merge commits unless I set `annexsynconlyannex = true`.)