Few months ago I just decided to get my own vps for self hosting few things, I am not a sysadmin by trade, so it's a bit of a challenge to deal with a linux server, but the reward is huge, I can't think in a more useful thing that you can learn from the tech world than the skill of managing servers for your own services (and maybe family and friends if you think you are capable of).
The first thing I self host was this website, using Nginx and letsEncrypt help me to show this website to the world, but also later I decided to self-host my library with Calibre, and try few other things like Pleroma (when I was in the Fediverse), Searxng, and now I was considering to host my own git server.
As a wanna-be tech independent guy I found very little purpose to have a full feature git client like Github, most of my code it's just means for reproducing calculations so people are not going to do pull request to add new features to code that is for data analysis generally. But if it happens, welcome!.
That's why I just set up Cgit, for the purpose, which is fairly simple, is in the Debian repository and has a very narrow scope, so if someone one send a patch, it has to be by email. The procedure for installation was quite simple, most of what you need you can read here