I develop my Grav site locally and use github and push to sync local changes to the live site. Recently, I added Let's Encrypt to my live site, with changes to .htaccess. Those changes mean I cannot work locally without reverting the need for SSL. That's OK, but it is tiresome to have to remember to rename .htaccess each time I want to do something locally and then back again afterwards.
I tried to ignore .htaccess in gitignore, but that then deletes it on the live site.
Is there any way to have one .htaccess on the dev site and a different one on the live site and make sure that syncing does not change either of them?
Thanks.