summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jewel <jewel@web>2014-10-12 04:59:36 +0000
committerGravatar admin <admin@branchable.com>2014-10-12 04:59:36 +0000
commit5873eb550df7e174db25938ee44fde565b137535 (patch)
tree13c52ee6feb236a66ed64701179983b3a02359ef
parent5afdcc4a23eea80b497024b8738e18dd999ba530 (diff)
-rw-r--r--doc/forum/multiple_git_repositories_inside_git_annex_assistant_repository.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/forum/multiple_git_repositories_inside_git_annex_assistant_repository.mdwn b/doc/forum/multiple_git_repositories_inside_git_annex_assistant_repository.mdwn
new file mode 100644
index 000000000..17a14bfb8
--- /dev/null
+++ b/doc/forum/multiple_git_repositories_inside_git_annex_assistant_repository.mdwn
@@ -0,0 +1,19 @@
+I have a Desktop computer at home and another at work, and work from home every other day. I'd like to use git-annex assistant to keep my git checkouts in sync across both of them. I may be a bit unusual in that I don't always commit before going home.
+
+I also would like to have anything in the git stash synchronized between the two, the .git/config file, etc.
+
+So to be clear, I have a file structure like the following:
+
+./annex/.git
+./annex/project/README.md
+./annex/project/.git
+./annex/project2/README.md
+./annex/project2/.git
+
+In my testing it seems that the "project/.git" folders aren't synchronized between my two desktops, even though the rest of the files are. A workaround is to rename "project/.git" to something else, like "project/.gitfoo", and then use --git-dir when issuing my git commands.
+
+Is this something that can be worked around? I apologize if this is covered elsewhere, as I wasn't thinking of the right terms to search for.
+
+I've looked through the code and can't find anything obvious. I imagine this is because git hard-codes all ".git" subdirectories as something it should ignore.
+
+Is there a better workaround? I realize this is probably a niche use case.