-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to set --git_dir
?
#414
Comments
+1 I would like to do this as well. Though I want to point |
I found a workaround using plaintext Assuming that your .git is at
If all of your machines share the same username you can use absolute path, too
However it would be best if this plugin supports setting git & gitdir from the plugin's option, since isomorphic-git already supported those options https://isomorphic-git.org/docs/en/dir-vs-gitdir, or at least support adding environment variables apart from |
You should now be able to specify a GIT_DIR via a new added setting. Works for mobile as well. |
Works like a charm. Thank you guys! |
I have a setup of syncing obsidian repos between Mac and Win via iCloud Drive.
Initially, I put the
.git
in the root dir of the obsidian repo, but iCloud always messes up the objects in.git
when I switch OS.Now I'm thinking of having a git directory for each machine locally that's not synced by iCloud, and have a host specific
--git_dir
for the plugin to pass to git binary.Going through the current plugin setting scheme, I guess adding a
GIT_DIR
env var into the "Additional PATH env var paths" could help? Yet when I tried it out on Windows, it looks like the plugin tries to split the:
in my disk reference, i.e.D:\
.Is the PATH field a right fit for my use case? If so, how do I set it on WIndows?
Thanks in advance.
The text was updated successfully, but these errors were encountered: