Hacker News new | ask | show | jobs
by mdaniel 476 days ago
FWIW, you don't have to do that rename dance; git allows specifying the name of the .git metadata directory via `git --git-dir=$HOME/.git_hidden ...` or `GIT_DIR=$HOME/.git_hidden git ...`

I don't know how big your .gitignore must be when trying to use a tool that wants to own every file and directory to manage your /home but if that works for you, more power to ya

2 comments

Oh, interesting, thanks!

And I don’t even bother with ignoring files! I just git add the ones I want to track :)

Start with ls -a -w1 > .gitignore, then edit it and delete everything you want to track.