The time comes when each of us wants to build their own private repos to commit or deploy. Well my time has come.

Install git and add user, email and favorite editor

# pkg install git
# git config --global user.name "user"
# git config --global user.email "email"
# git config --global core.editor "ee"
# git config --list

Add to rc.conf

git_daemon_enable="YES"
git_daemon_directory="/dir/to/git/repos"

Start daemon service git_daemon start

Install cgi handler # pkg install fcgiwrap

TODOS