So far, nothing has allowed me to screw stuff up wholesale like git. I keep hoping that I'm over the hump of the learning curve, and then here I am with something completely new...
I created a new git repo to begin version controlling my homeassistant config. I didn't want everything going up so I created a .gitignore file. In messing with the .gitignore I was experimenting with a couple of different options, the first of which disallowed everything, then added back specific file types. The second only disallowed a slightly broader set of files. During the messing with the .gitignore I made a couple of commits and attempted a push to github, which rejected my push because of a large database file. I added the database file to the .gitignore, and I believe, switched to the second version of the .gitignore, then did a pull. At some point I then noticed that all my files that were not covered by the .gitignore patterns have now disappeared.
I've tried checking out some of my initial commits before files started disappearing, and nothing has returned. Really, I'd just like to get back to the state before I initialized the repo, everything has really been downhill from there. I feel like the files can't actually be gone, because I never did anything that feels like it should have deleted them, but I can't seem to get the repo to reveal them.
My session log is posted here if following my flailing helps to debug: https://github.com/alexholman/tale_of_woe/blob/master/session_log.txt
Looking through the log, line 638 is the first time I should have noticed that my file list had gotten significantly smaller.
I don't mean to be so down on git. It seems wonderful, and the people I know that use it well do some magical things with it. But right now its late, I'm tired, and I miss my files.