Git Product home page Git Product logo

srisadhan.github.io's Introduction

Steps to build website on local server

Using Rstudio

install the blogdown package.

  • build website : blogdown::build_site() : This will create a folder named public in the repository
  • start server : blogdown::serve_site()
  • stop server : blogdown::stop_server()

Using Hugo in terminal

hugo server -D

Steps to update the github.io

The location of the personal website in my drive is C:/Hugo/Sites/personal-website

There are two major steps:

Step 1: Update the personal-website repository

  • Check the repository origin : "git remote -v" (if the head directs to some other repo other than "personal-website", git remote add origin )
  • initialize the repository : "git init"
  • update the local repository : "git pull"
  • add the local files : "git add ." (public folder will not be added as it is ignored in gitignore)
  • commit the local files : "git commit -m "Commit message""
  • push the files to the repo : "git push origin master"

Step 2: Update the srisadha.github.io repository

cd public

  • Check the repository origin : "git remote -v" (if the head directs to some other repo other than "srisadhan.github.io", "git remote add origin " and then "git remote set-url origin ")
  • initialize the repository : "git init"
  • update the local repository : "git pull" (if this does not work, do "git pull origin master --allow-unrelated-histories")
  • add the local files : "git add ." (public folder will not be added as it is ignored in gitignore)
  • commit the local files : "git commit -m "Commit message""
  • push the files to the repo : "git push origin master "

Common issues:

Sometimes the "git pull" or "git pull origin master --allow-unrelated-histories" might not work. In such situations, it is okay to force the local repository to the github repository.

  • Check the repository origin : "git remote -v"
  • initialize the repository : "git init"
  • add the local files : "git add ." (public folder will not be added as it is ignored in gitignore)
  • commit the local files : "git commit -m "Commit message""
  • push the files to the repo : "git push --force origin master "

srisadhan.github.io's People

Contributors

gcushen avatar srisadhan avatar cfroehli avatar jpawlowski avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.