Deploying to Netlify

Netlify is a commercial platform for hosting static websites and single page applications. To deploy to Netlify, you need to push your code to a remote Git repository. But first, you need to set up a local Git repository and get version control in place. Once that’s done, you’ll push your local repository to a remote repository so you can integrate it with other services.

If you don’t have Git installed locally, follow the installation instructions on the official Git website.[39] Then, follow the instructions they provide to configure your client.[40]

Once Git is installed, navigate to your project directory and run the git init command to convert your directory into a new Git repository:

 $ ​​git​​ ​​init

Your Git repository ...

Get Build Websites with Hugo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.