I use git for source code management.
Some projects are on GitHub. Others are pushed to a local git server.
Some projects, such as one-off utility scripts, are not in git at all, but are backed up locally (and off-site).