Create repo to deploy your project Create on bitbucket or github Add your repo on local project git remote add origin [email protected] Init git on project path cd /project/path && git init Add your modifications/files on git stage to prepare commit git add . Commit your files on git stage and add message git commit -m "My first deploy" Push your commit to HEAD origin (DEFAULT BRANCH MASTER) git push origin master Login in your host And enter you password ssh user@host Create/Open build DIR on host cd /var/www Clone your project repo ON HOST git clone [email protected]