paint-brush
Deploying a Website [The Easy Way Out]by@unnati-mishra
269 reads

Deploying a Website [The Easy Way Out]

by Unnati MishraJune 12th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The following steps are necessary to deploy a website on Netlify using your Github Repository. The steps include installing Git Bash on your system and creating a repository with some name and then leaving it. You can also change your site name by clicking on change site name. The next step is to add all your files to your Github repository and upload them to your website. The following commands are required to be used to deploy your website using Git Bash: "Git init," "git add", "commit" or "commit", "upload"

Company Mentioned

Mention Thumbnail
featured image - Deploying a Website [The Easy Way Out]
Unnati Mishra HackerNoon profile picture

Here are few steps that you have to take to deploy a website on Netlify using your Github Repository -

  • Install Git Bash on your system.
  • Make a separate folder of your website files on Desktop.
  • Open your Github and Create a repository with some name and then leave it.
  • Open Command Prompt ;
  • Type the following commands
  • cd Desktop
    cd { your folder name }
    git init               (For initialising a folder named git in your folder)
    git add .            ( To add all your files to that folder)
    git status          (To check whether the files are uploaded or not)


  • Open Github , in the first page that opens after you created the repository; find this line -
    git commit -m "first commit"
    . Or look at the cover picture of the blog.
  • *Copy the next two lines one by one .(Make sure that https is selected in the Quick Setup Bar)
  • *Refresh the page and you will get all your files.
  • *Login on Netlify and Select your Github repository.
  • *Click on Deploy. Now your website is deployed.

*You can also change your site name by clicking on change site name.

Hurray! now you have deployed your website :)