diff options
author | http://joey.kitenet.net/ <joey@web> | 2011-12-09 22:56:11 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2011-12-09 22:56:11 +0000 |
commit | be67294a1ebf1a49eddaf9698c662888d80d6a7a (patch) | |
tree | 7ca27f3e90c2b0f79abb37cd2dd8ab66491162a8 | |
parent | 2cd22c1a13d6b4e1c6d2407d249f2f8d92643fbd (diff) |
Added a comment
-rw-r--r-- | doc/forum/pure_git-annex_only_workflow/comment_1_a32f7efd18d174845099a4ed59e6feae._comment | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/forum/pure_git-annex_only_workflow/comment_1_a32f7efd18d174845099a4ed59e6feae._comment b/doc/forum/pure_git-annex_only_workflow/comment_1_a32f7efd18d174845099a4ed59e6feae._comment new file mode 100644 index 000000000..def1794a3 --- /dev/null +++ b/doc/forum/pure_git-annex_only_workflow/comment_1_a32f7efd18d174845099a4ed59e6feae._comment @@ -0,0 +1,32 @@ +[[!comment format=mdwn + username="http://joey.kitenet.net/" + nickname="joey" + subject="comment 1" + date="2011-12-09T22:56:11Z" + content=""" +First, you need a bare git repository that you can push to, and pull from. This simplifies most git workflow. + +Secondly, I use [mr](http://kitenet.net/~joey/code/mr/), with this in `.mrconfig`: + +<pre> +[DEFAULT] +lib = + annexupdate() { + git commit -a -m update || true + git pull \"$@\" + git annex merge + git push || true + } + +[lib/sound] +update = annexupdate +[lib/big] +update = annexupdate +</pre> + +Which makes \"mr update\" in repositories where I rarely care about git details take care of syncing my changes. + +I also make \"mr update\" do a \"git annex get\" of some files in some repositories that I want to always populate. git-annex and mr go well together. :) + +Perhaps my annexupdate above should be available as \"git annex sync\"? +"""]] |