-
This is not directly related to My setup:
I'm currently playing around with For testing purposes, I created the remote repo on the VM and ran So, this approach via SSH would most likely work just fine for my laptop with my remote repository located on my desktop, as I intend to do. However, it wouldn't work for syncing my dotfiles between my Arch Linux and Gentoo installs on my desktop: same machine, same local IP address. I cannot run Ideally, on my desktop, I would like to be able to manage my dotfiles from the booted OS and from chroot. I thought about creating the remote repo somewhere in What would you guys suggest? I'm curious to know if there's a way to achieve this or if I would have no other choice but to rely on GitHub / GitLab / Bitbucket for hosting the remote repo. Any idea is appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I was replying to a comment which partially gave me the solution but looks like it was deleted. To whoever commented: thank you! 👍 The following did the trick: git init --bare /media/Data/path/to/my/local/remote/repo
chezmoi init
chezmoi cd
git remote add origin /media/Data/Software/Linux/dotfiles I also solved the From my
I'll experiment further and see how it goes. |
Beta Was this translation helpful? Give feedback.
I was replying to a comment which partially gave me the solution but looks like it was deleted. To whoever commented: thank you! 👍
The following did the trick:
git init --bare /media/Data/path/to/my/local/remote/repo chezmoi init chezmoi cd git remote add origin /media/Data/Software/Linux/dotfiles
I also solved the
/media/Data
directory not being accessible from chroot using a bind mount. I had heard about bind mount before but never really got my head around it.From my
/etc/fstab
:I'…