Ask HN: Turn my home directory into a Git repo?
I was thinking of making my home directory into a Git repo, so that I could easily see when new files (hidden or otherwise) are added by programs I use, and so that I could just generally track changes. I would probably add directories like Music, etc. to .gitignore to avoid bloat.
Some of the things that would be interesting to notice are all the little hidden configuration files that build up over time, e.g.:
.android, .bash_history, .bash_profile, .bash_profile.pysave, .boot2docker, .cache, .cleanup, .config, .cups, .docker, .fctsslvpnhistory, .filezilla, .gitconfig, .heroku, .ipython, .local, .netrc, .node-gyp, .npm, .oracle_jre_usage, .pip, .putty, .python_history, .swt, .thinkorswim, .v8flags.3.28.71.19.me.json, .vim, .viminfo, .virtualenvs
Do you have any thoughts on doing this? Is it a terrible idea?
9 comments
[ 3.1 ms ] story [ 24.5 ms ] threadObviously you should change that to git instead of CVS.
Maybe find some additional info on http://dotfiles.github.io/ to get you started.
https://fuller.li/posts/organising-dotfiles-in-a-git-reposit...
It's really enlightening to see just how quickly a perfectly clean home folder can get filled with hidden directories.
Edit: Oh, this doesn't help you with seeing what new stuff is added, at least not in the root of the tree. But it's a useful trick.