Closed ursbraem closed 2 years ago
yadm does not simply symlink files. It is, in essence, a wrapper around Git. The Git repo is located in ~/.local/share/yadm/repo.git and the Git worktree is usually $HOME.
To compare, normally when you clone a Git repo into directory X, X is the worktree (where the files are kept) and X/.git is the repository (where the repo history is kept).
It might help to think of yadm as making your $HOME be a cloned repo, and it uses some "magic" to use ~/.local/share/yadm/repo.git instead $HOME/.git.
As for using another tool, that might be possible if the tool supports the environment GIT_DIR & GIT_WORK_TREE, you can try running "yadm enter
Hopefully this helps. If it's still confusing, I'll try to explain in another way.
It might help to think of yadm as making your $HOME be a cloned repo, and it uses some "magic" to use ~/.local/share/yadm/repo.git instead $HOME/.git.
Yes, that helps!! Thanks!
Hi
this is about my third attempt to start using
yadm
. I want to very much, but still don't understand what it does though, so I was nearly about to give up again.What I expected it to do:
What I think I understand it does:
~/.local/share/yadm/repo.git
which I can then push & pullIs that correct?
What is the reason the repo is bare (if I got that right) and isn't in a custom location? Is it possible to see yadm commits / files locally in a git client like tower?
That's about it. Writing the questions already helped me understand a little better.. but I'd still be happy about a dummy-proof explanation on how this works.
Thanks!