From ee23c540eaab2ea32e2950d757b2a0f93c51c17a Mon Sep 17 00:00:00 2001 From: nobodyinperson Date: Mon, 15 May 2023 07:31:41 +0000 Subject: [PATCH] Added a comment: Git Alias for a 'full sync' --- ..._2_eeb1bb0b1a02a74291daa41e9a8eb725._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/todo/Having___39__git_annex_sync__39___optionally_add/comment_2_eeb1bb0b1a02a74291daa41e9a8eb725._comment diff --git a/doc/todo/Having___39__git_annex_sync__39___optionally_add/comment_2_eeb1bb0b1a02a74291daa41e9a8eb725._comment b/doc/todo/Having___39__git_annex_sync__39___optionally_add/comment_2_eeb1bb0b1a02a74291daa41e9a8eb725._comment new file mode 100644 index 0000000000..0e1d8ee110 --- /dev/null +++ b/doc/todo/Having___39__git_annex_sync__39___optionally_add/comment_2_eeb1bb0b1a02a74291daa41e9a8eb725._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="nobodyinperson" + avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5" + subject="Git Alias for a 'full sync'" + date="2023-05-15T07:31:41Z" + content=""" +This alias pretty much does what I mean: + +[[!format perl \"\"\" +# set the alias +git config --global alias.sync '!sh -xc '\"'\"'cd \"$(git rev-parse --show-toplevel)\";git annex add;git add -A;git annex sync'\"'\"'' +# This then goes into the repo root, adds stuff with git annex, adds the rest git-annex didn't add and syncs with git annex +git sync +\"\"\"]] + + +"""]]