Deploying a Website [The Easy Way Out]

Written by unnati-mishra | Published 2020/06/12
Tech Story Tags: deploy | deploy-a-web-app | netlify | how-to-deploy-website-fast | deploy-website-easy | deploy-website-netlify-guide | latest-tech-stories | web-development

TLDR 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"via the TL;DR App

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 :)

Written by unnati-mishra | cout<<"Front End Designer";
Published by HackerNoon on 2020/06/12