While going through the docs, I found that sync --cleanup
will remove the synced/*
branches after completing a sync.
Is there any reason why it would be a bad idea to use that flag as a default for my own use. I like the clean aspect of not having those branches around, but I don't know if there's a good reason why I would want to keep them.
git-annex sync --cleanup
does not do any of the pushing and pulling thatgit-annex sync
does without the option. So you would want to run the command once without the option, and then once with it.Besides being extra work,
git-annex sync --cleanup
can delete sync branches that have not yet been merged. That's the point of it after all; the docs for it discuss a situation where you would want it to do that. But usually you do want to let the sync branches be merged.My recommendation would be to not use the option unless you actually need it.