Setup an alias
git config --global alias.serve "daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/"
Run the alias
git serve
From another machine, git fetch or git clone from your ip address or url.
git fetch git://192.168.0.23/