First get a server. It can be a desktop at your home with public network access or Digital Ocean, AWS etc. It doesn't matter as long as you can ssh into it.
on the server
ssh user@ip
mkdir project.git
cd project.git
git init --bare
If you want someone to contribute as well, add his/her public key to ~/.ssh/authorized_keys on the server. The public key can be found on github.com/github-user-name.keys
First get a server. It can be a desktop at your home with public network access or Digital Ocean, AWS etc. It doesn't matter as long as you can ssh into it.
on the server
locally
If you want someone to contribute as well, add his/her public key to ~/.ssh/authorized_keys on the server. The public key can be found on github.com/github-user-name.keys