I would suggest that you look into GitLab. GitHub and GitLab are virtually the same (both work on Git), but have different licensing rules. I find GitLab to be better for any personal work.

I went to GitLab after wrestling with a situation that sounds about the same as yours. The one wrinkle I had was that I worked on a project primarily on one computer, but occasionally on a second computer. That meant that just keeping everything local on the one computer caused me two problems. The first problem was backing up the source in case of catastrophic hardware failure (like a hard drive going down). The second problem was sharing the project between the two computers. Using version control solved both of those, and GitLab was the superior choice at the time (and still is today, to the best of my knowledge).

Using GitLab, I keep the project local on the main computer, and at the end of the day it is a one click operation to commit the changes to the local Git repo (though you really ought to take the time to add a fairly verbose comment to the commit, as that will create a history that really pays off over time), then a second click to push the changes up to GitLab, which stores the project in the cloud. This is integrated into VS, which is what makes pushing the changes so simple. Then, when I switch to the other computer, I just have to pull the latest version of the project, make changes, then push the changes back up. Technically, I should be pulling changes on each computer as a first step, but since I'm the only one working on the project, I generally do remember which computer I was on last and whether or not the code on the current computer is up to date or not.

A third option might be Azure DevOps. I use that at work. The interface is clunkier than GitHub or GitLab, but that may be largely because of the way it is set up at work, which is less than ideal. The key question for a private individual, is the licensing between the different options. GitLab offers free private repos, GitHub has gone back and forth, and I don't know what Azure DevOps allows. They might all allow free public repos, but that would mean your code would be available to anybody.