Deploy Node.js on ubuntu with GIT

Install Git on your server

ssh into your VM, then install Git:

Clone your private/public repo

If you get permission denied error which might happen if the repo is private follow the following steps

  • Github actions (CI & CD)
  • post-receive Git hook

Finding Magic.