When Microsoft bought Github, some developers who had trusted GitHub with their code, are considering ditching it. In case you have the same thought, you may want to consider hosting your own Git server. After all, that is the best approach to ensure that your code repository stays under your control.
In view of hosting your own code repository, you may want to setup a Raspberry Pi 3 Git server. Together with Go Git Service and Raspbian Stretch Lite, you can get a Git server with decent performance.
Given these points, this post discusses how you can setup your own Git server on a Raspberry Pi 3 with Go Git Service (Gogs) and Raspbian Stretch Lite.