I've been reading up on the concept of dotfile management, and I've come across tools such as GNU Stow, chezmoi, and yadm, but before I select a tool, I'd like to understand the workflow a little better.

I understand if the dotfiles are in some cloud provider such as GitHub, then after a fresh install one can do git clone etc, but let's say one's dotfiles are not stored in the cloud, then what's the workflow for getting those dotfiles onto the freshly installed OS? Do people do git clone from another machine on their local network, manually copy the dotfiles folder from the source, use an app like LocalSend, or something else?

EDIT: Clarifying that this is for a home environment, where I have two or three different laptops in service at any given time. One is my main daily driver and doesn't change much. The other two are kinda my sandboxes and I'm often distro hopping on them. This question is mostly for distro hopping on my sandboxes, which is like once or twice a month. Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 9 months ago* (2 children)

If you have a network share available, it can be a git remote.

cd NETWORKSHARE
mkdir dotfiles.git
cd dotfiles.git
git init --bare
cd $HOME/dotfiles
git remote add origin NETWORKSHARE/dotfiles.git

Then do git push and git pull operations as usual. The files at NETWORKSHARE/dotfiles.git will not be readable, but will have the full history of changes.

  • source
  • hideshow 2 child comments