Getting up and running with the latest version of HassIO and I wanted to backup my config files on github. I’m following the instructions in the docs but I’m running into 2 issues.
When i run the git commit command it shows all of the files. This includes my secrets.yaml file even though my .gitignore file is copy/pasted from the docs. Is there something wrong with my .gitignore file or is this normal?
After running git commit it allows me to enter a commit message like the docs say…but how to you actually finish the commit!! It seems like I’m stuck in editor mode. I found that CTRL+Z will abort the commit.
I’m running putty on windows 10 to SSH into my RiP3. I’ve googled around but haven’t been able to find a solution, hoping someone here can help.
EDIT: I have not installed the git pull add-on, I don’t think this should matter but figured I’d mention it.
God yes, vi has lots of uses, and many fans, but it is not for beginners. I recall installing BSD as an experiment. The only editor in the basic install is vi, and to change shell you need to use chsh but that uses vi and I could never remember how to use it so I had to reboot my only computer to another OS to google for how to work vi and write it down and boot back to BSD and …
Thanks stibbons, I was using notepad++ on windows and needed to use the unix line endings. I deleted the local git repo and did a fresh git init and everything worked perfectly!
For what it’s worth, some stuff in Linux will work with Windows-style line endings (I’m pretty sure Home Assistant configuration / python’s yaml parser in general will). But as you’ve discovered, not everything does. It’s pretty good practice to get in the habit of using Unix line endings for all of your work with HassIO and your Raspberry Pi.
This comment made me chuckle… VI is one of the most powerful editors out there, so it ain’t dying any time soon! lol. But I totally understand your pain if you’re not accustomed to using it.