how to extract webpage from a git repo and then throw it into root of www server

computer_glamour cac39f3e9a Update 'README.md' vor 2 Wochen
LICENSE 6d5ae3fbbb Initial commit vor 2 Wochen
README.md cac39f3e9a Update 'README.md' vor 2 Wochen

README.md

GOGS website sync with git repo

how to extract webpage from a git repo and then throw it into root of www server

git --git-dir=/path/to/repo.git archive HEAD | tar -x -C /destination/path