options to deploy git
use a service provider
several companies offer free private and/or public git repositories
( github ,Assembla, atlassian , gitlab etc) see git source code hosting services
but there are privacy concerns
use git only locally only
without a (remote) server , only for local version control.
A remote server has the extra advantages of being a (remote) copy
and accesible from anywhere via internet without much hasle , so you can easily modify on different locations
But you could backup the repo yourself or put the origin on a NAS ,
for some use case scenarios you do not need internet access
use git only - locally and on a server
host on a server and access bare repos via ssh
this is the original design by torvals
git also has built-in gitweb which is a very simple webui for you to browse git repos.
self hosted with git server software
use git server software to build your own “git hosting server” :
this could be on your home network or on a vps
gitea : very lightweight , but now going commerical , fork : (see disroot)
GitBucket , GitLab , GNU Savannah , and others have free software to deploy yourself
gogs
srch :: github alternative self hosted
see : https://www.cyberciti.biz/open-source/github-alternatives-open-source-seflt-hosted/
=> gogs git server seems very interesting