- Create user git user using standard useradd command
- initiate bare repository
git init --bare test.git
- After initialization do the following
mv hooks/post-update.sample hooks/post-update
$ chmod a+x hooks/post-update
- run
git update-server-info
More on configuration for various git protocols https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols