yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.15k stars 176 forks source link

Create layers of configs with branches #441

Closed elyashivhazan closed 2 years ago

elyashivhazan commented 2 years ago

This question is about

Describe your question

Hi, I'm trying to separate my CLi configs (e.g nvim, shells, etc...) with my GUI configs (e.g sway, mako, etc...). But I want when I clone the GUI configs the CLI will come with it and if I changed something in the CLI it will automatically changed on the GUI side.

TheLocehiliosan commented 2 years ago

I'm a bit confused about what you're attempting. It is possible to have separate branches, and clone specific branches. However, you also seem to want these separate configurations together somehow.

I'm not sure if this is what you're going for, but it is possible to have multiple branches and via careful commits/merges keep them sort-of in sync. Either rebasing one branch's changes onto of the other branch (repeatedly) or merging changes from one branch into another, etc. Seems like it could get rather messy though.

Perhaps a different approach would be to use two repos. There are some who track user files and system files separately. There's some info about that use-case here: https://yadm.io/docs/faq#unconventional-cases

elyashivhazan commented 2 years ago

Thnks. I knew about rebasing the branches but I thought git has some fetcher that I do not know about because I do not relay use git and know it that will.

Thanks for the help.