You don’t absolutely need a central repository for Git. It’s decentralized. You can learn the basics (committing, branching, rebasing, amending, merging, resolving merge conflicts) entirely on your computer.
My advice would be to get familiar with using Git locally first. Simulate things like merge conflicts - have two branches that both change the same line in a text file, then merge them together and resolve the conflict.
Once you’re more comfortable with using it locally, learn about code forges like Github or Forgejo.






As someone who’s worked in Silicon Valley for 13 years… A lot of senior developers that work at big tech companies can earn over $500k total compensation (salary, bonus, and stock) per year. A higher level, like L7 at Google or E7 at Meta, can earn over a million per year. You can end up with $5-10 million net worth after 10-15 years.
Some people end up saving enough and having enough investments to retire early and mostly live off the returns. This strategy is often referred to as FIRE (Financial Independence, Retire Early).
Of course, people still want something to keep them busy, so they tend to end up doing something they always wanted to do but never had the time or money to do it. They don’t need the money, so can spend time just enjoying it rather than focusing so much on working. I know someone who retired in their 40s and started doing woodworking full time.