News for hackers. Stuff that matters.
Re:Using GNU Stow to manage your dotfiles by cespare on Wednesday September 04, 2013 @10:20PM (#6331817)
I also keep my whole homedir in git, and it's great. My approach isn't to .gitignore, because I want to ignore almost everything -- I just add and commit things when I want to track them. One of my many git aliases[1] is 'git sn' for showing status without untracked files; this helps when dealing with my homedir:

  status --short --branch --untracked=no
[1] https://github.com/cespare/dotfiles/blob/master/.gitconfig#L...
Re:Using GNU Stow to manage your dotfiles by oops on Wednesday September 04, 2013 @11:38PM (#6332014)
I have my homedir in git too and also ignore just about everything. I ended up using gitignore as a whitelist instead of a blacklist, e.g.:

    /*
    !/.gitignore
    !/.gitmodules
    !/.gitconfig
    !/.zshrc
    !/.zshenv
    !/.zsh
    !/.tmux.conf
    !/.vimrc
    !/.vim
Re:Using GNU Stow to manage your dotfiles by dgellow on Thursday September 05, 2013 @05:05AM (#6332964)
I have a close setup. It just needs a little trick to add subdirectories :

  /*
  !/.emacs
  !/.emacs.d/
  /.emacs.d/*
  !/.emacs.d/themes/
  !/.emacs.d/functions/
You can check my .gitignore here [0].

[0] https://raw.github.com/dgellow/home/master/.gitignore

Re:Using GNU Stow to manage your dotfiles by JoshTriplett on Wednesday September 04, 2013 @10:38PM (#6331869)
I actually prefer to .gitignore things explicitly, because then any new dotfiles show up in "git status" until I explicitly disposition them.
Re:Using GNU Stow to manage your dotfiles by dhimes on Thursday September 05, 2013 @08:57AM (#6333818)
I wondered about this, but I pose this question to you: what happens if you have a merge problem with, say, a libreoffice doc or something. How do you handle that? I use hg, but I imagine my plight would be similar. TIA.
Re:Using GNU Stow to manage your dotfiles by cespare on Thursday September 05, 2013 @03:29PM (#6336357)
I don't keep anything but text files in my dotfile repo, so I haven't had to deal with this.