Thanks for sharing that story, sounds like rough times. I am happy that you see also the beneficial effect of learning from it. :)
I had in my former company the enjoyment to have version control with SharePoint for my code, it was a nightmare and problems with the delivery was a standard. Even after multiple escalations, I was maybe to junior to convince the business at that time so I created a self-hosted (on my former laptop) git server to have at least a clone from there.
It is so crucial and still, a business can not always see the value of that.