Is only the git file needed?

I am trying to set up a git deployment process onto a virtual host. I am using the following guide to do it. However I am unsure whether only the .git file is needed on the virtual host or whether a whole hugo site is. I am just asking to double check. thanks.

Please don’t start new threads pointing at existing threads.