Hello,
git-annex does a lot of convenient stuff, also locally. With git-annex sync [remote-name] the synchronization can be restricted to a single remote.
However, I think being able to restrict sync to no remote at all, only doing the local stuff, would be helpful.
The natural syntax for me would be git-annex sync here. But it says:
$ git-annex sync here
commit ok
git-annex: there is no available git remote named "here"
I think a workaround would be to do:
$ git-annex sync --no-push --no-pull
Is that correct?
Still, I think "git-annex sync here" would be a convenient shortcut.
Well, that does the same thing as
git commit -a
, so I don't see any benefit complicating the command with additional syntax.git-annex sync does more than that. Especially merging the synced branches and, thus, showing files that were pushed into a repo from a remote. Also, git commit -a cannot be done in direct mode. But, I think I can just create an alias for git-annex sync --no-push --no-pull to save me some typing.