简体   繁体   中英

How to Update Deployed React App on GitHub Pages

recently I have deployed my first React App on GitHub Pages https://karan-dhingra.github.io/lct/

Now I updated react app and my changes are not reflected on GitHub Pages. But everything was working well on Localhost. So, please guide me on how can I update my deployed React App on GitHub Pages.

Just we need to run 3-4 commands

git init

git remote ****************.git [ Here we will add our repository link ending with.git you will found it in the code option in your repo.

npm run deploy [Make sure you have installed gh pages first]

git add.

git commit -m "Here you write message while committing, you can write anything here"

git push origin master

So, with using these commands everything will work well.

Make sure you save the code in the IDE. after saving check with "git status" command and commit & push to git repo and the changes will be reflected

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM