Learned the basics online and then forgot about it. Picked up doing data analysis 3 years later, and shortly after that came across Flask web application development.
Taught myself for a week, then developed a software feature. Learned by doing and now even become a front-end developer.
Working on an open-source project in a team definitely requires the use of Git. Mostly, use GitHub.