When you use Git, the workflow generally is toward version control only. You have a local repository where you work and a remote repository where you keep everything in sync and can work with a team and different machines. But you can also use Git to move your application to production.
Your server live directory: /var/www/domain.com
Your server repository: /var/repos/website.git
What should we do if we want to push to website.git
and at the same time make all the content available at /var/www/domain.com?