How to make changes in the react webpage in github pages?

Shiv_ka_ansh

I had deployed me react webpage successfully in the main branch. There are my main source files, take a look Main branch. And after deployment, branch gh-pages has all necessary files containing like a static folder and all... take a look here gh-pages branch.

But whenever I change in the main branch, it does not reflect the webpage. Is there any way to push all my changes??

I am unable to push changes to the gh-pages branch as I am afraid because it is having totally different files.

How can I do these changes??

I had followed these git commands, but it didn't work

$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin master

$ git checkout gh-pages // go to the gh-pages branch
$ git rebase master // bring gh-pages up to date with master
$ git push origin gh-pages // commit the changes
$ git checkout master // return to the master branch

Referred from here

Thanks in advance...

Joseph Gordy

Make sure you have these scripts in your package.json file, then you can just run npm run deploy

"scripts": {
//...
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to add a Github repository image to its Github-pages webpage?

How to set up project pages as subpages of GitHub personal webpage?

How to make "spoiler" text in github wiki pages?

How to make WolframAlpha Request on static Github Pages?

How to make customizable download URLs on GitHub pages?

Deploying React webpage to Github

GitHub Pages - Failed to load CSS of webpage

Can't create a webpage by using github pages

How to make toggleClass changes persist as visitor moves between pages?

How to make GitHub Pages Markdown support mermaid diagram?

How to make scully.io work on github pages?

How does React work with Github pages isn't github pages only for static websites?

Make a React WebPage for local use

How can I make changes to others project Github?

How can I make Github desktop detect changes in STS?

Make Github pages case insensitive?

How to create a workflow to deploy on a React & Gatsby app to Github pages?

How to deploy React App on Github Pages (only background color is seen)

how to update a custom GitHub Pages with create-react-app as root

How to host a React App on Github gh-pages

how to publish to github pages?

React Router URL on github pages

Getting react to work on github pages

Deploying react app to github pages

Redeploying React Application on GitHub pages

React Router not working with Github Pages

Blank webpage when using GitHub pages with custom Google domain

How do I add a submodule to my existing repo, make changes locally, and push all changes to my github?

How to make webpage display as a square?