Git dotfiles without the bloat (rake, yadr, make, kitchen sink)
blog.piasetzki.name
blog.piasetzki.name
I used to do symlinking but found the working copy in $HOME approach much better.
I'm curious about this too since something dead simple (and reasonably idiot-proof) would be useful to me as well.
Having ~/dotfiles/.git and aliasing a command that sets GIT_DIR=~/dotfiles/.git and GIT_WORKDIR appropriately would be safer.
But your solution is definitely safer -- although I think you meant GIT_WORK_TREE, not GIT_WORKDIR, right? I'm going to switch. Thanks!
EDIT: Working nicely :) https://github.com/nixme/dotfiles/commit/64486fe25e6750567a0...
This is still risky if your ~/.git had uncommitted changes. I'll admit to being a little paranoid but I spent enough time on the #git irc channel to learn that any advice that is potentially dangerous will _always_ be used in the dangerous fashion, often without knowledge of the risks. > although I think you meant GIT_WORK_TREE, not GIT_WORKDIR, right?
Yeah, brain cramp on that one, sorry.
I feel that the right solution to this is going to be vcsh.https://github.com/RichiH/vcsh No symlinks to dotfiles, all the files live in $HOME, but vcsh can be used to switch between accessing different git repositories that contain different of the dotfiles. http://vcs-home.branchable.com/ has more.
(Also, rake? yadr? vcsh is a posix shell script.)
vcsh sounds like a neat system if you need to have multiple repositories with the same working directory, but I don't understand the advantages of this for managing your dotfiles. My eyes glazed over when reading about the proposed system in section 3.2 of the README.