You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have tried pushing the files into gh-pages branch but when I go to the link:
https://tcreations.github.io/jQueryBadgesProject/
(as specified in the instructions for the project) I do not see my 3 badges but instead I see the exercise instructions for the project. Can someone help me? Thanks.
You should be able to delete your gh-pages branch from GitHub and run the npm script to deploy the contents of the src directory to a new gh-pages branch.
Run the following commands:
# checkout master branch
git checkout master
# delete local gh-pages branch if applicable
git branch -D gh-pages
# delete gh-pages branch on GitHub
git push origin :gh-pages
# push the contents of the src directory into the top level of the gh-pages branch# this actually runs the command git subtree push --prefix src origin gh-pages
npm run deploy:github-pages
Activity
cmckni3 commentedon Oct 28, 2017
You should be able to delete your
gh-pagesbranch from GitHub and run thenpmscript to deploy the contents of thesrcdirectory to a newgh-pagesbranch.Run the following commands:
ParadiseArtist commentedon Jan 15, 2018
Thank you! I had the same problem and was totally stuck. This process fixed it. Yeay!
cmckni3 commentedon Jan 15, 2018
Glad that helped @ParadiseArtist!