by e40 · 13y ago · 0 comments
I totally disagree. I love having much of my home directory in git. I have a .gitiignore for the stuff I don't want in there, but the rest. Ahhhhh, so nice to be able to clone somewhere else and use.
Like, say you thought ~/src/xulrunner was a git repo, but it was actually managed with hg or maybe was extracted from a tarball. Whereas normally executing some git command would complain that this is not a repo, if your ~ is a git repo then git will happily execute whatever you told it to on your dotfiles repo.
mv .git dot_git
git --git-dir="dot_git" add ...
Thats also a nice trick if you need a git repos in a git repos, e.g. for integration test for libraries interacting with git. status --short --branch --untracked=no
[1] https://github.com/cespare/dotfiles/blob/master/.gitconfig#L... /*
!/.gitignore
!/.gitmodules
!/.gitconfig
!/.zshrc
!/.zshenv
!/.zsh
!/.tmux.conf
!/.vimrc
!/.vim /*
!/.emacs
!/.emacs.d/
/.emacs.d/*
!/.emacs.d/themes/
!/.emacs.d/functions/
You can check my .gitignore here [0].