forum/git annex sync: only git-annexgit-annexhttp://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/git-annexikiwiki2016-03-12T16:58:09Zcomment 1http://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/comment_1_2be68ed36a1e6bfc896d5aea9463d3c7/joey2016-03-12T16:58:09Z2014-10-20T15:19:13Z
<p>Sounds like you should just use normal <code>git push</code>/<code>git pull</code> commands.
Works fine with git-annex.</p>
<p>Just be sure to include the <code>git-annex</code> branch in your pushes.
Eg, <code>git push origin master git-annex</code></p>
<p>You'll probably want to run <code>git annex merge</code> after pulling, to merge the
local and remote git-annex branches.</p>
comment 2http://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/comment_2_50e137e4d278dfd0103a41aff0cfa3a9/Torkaly2016-03-12T16:58:09Z2014-10-22T08:56:43Z
<p>Thank you for your response.</p>
<p>So annex looks like it's not really designed to work with an existing git repository, but only standalone?!</p>
comment 3http://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/comment_3_7753f8276478e0e05c10dba2b84bbc49/joeyh.name2016-03-12T16:58:09Z2014-10-22T16:18:16Z
<p>I struggle to see how you could draw that conclusion from what I said.</p>
<p>git-annex will work fine in an existing git repository. You can mix regular git commands like <code>git add</code>, <code>git push</code>, <code>git pull</code>, <code>git merge</code> with git-annex commands like <code>git annex add</code>, <code>git annex copy --to origin</code>, <code>git annex get</code>, <code>git annex merge</code>, in the same repository.</p>
<p>The <code>git annex sync</code> command effcetively runs <code>git commit; git pull; git annex merge; git push; git annex copy --to origin; git annex get</code>. If you don't want to run all those commands at once, you don't want to run <code>git annex sync</code>. That will not prevent you from using git-annex in any way.</p>
comment 5http://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/comment_5_52010f21a15d76d68986aa1fba29aaf1/Torkaly2016-03-12T16:58:09Z2014-10-29T18:51:29Z
<p>Hi,</p>
<p>thank you for your response. I just want to control my branches (master, dev and so on ...) by myself, without sync/master or sync/dev and without merging it automatically. But the git-annex branch should be populated between the repositories "magically" (some kind of "git annex syncannex"). As annex can't deliver such a basic functionality i assumed, that it was not designed to work with existing "real" git repositories.</p>
comment 1http://git-annex.branchable.com/forum/git_annex_sync__58___only_git-annex/comment_6_df94154fbbc4edbf7ff658f61bde48b5/joey2016-03-12T16:58:09Z2014-10-31T20:25:40Z
<p>I have explained clearly in comment #1 above how to do what you want to do,
using git-annex, so it is a pity if still think that "annex
can't deliver such a basic functionality".</p>
<p>It can. I have explained how. I don't know how to explain any better.</p>