Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to push into gh-pages #22

Open
tcreations opened this issue May 25, 2017 · 3 comments
Open

Not able to push into gh-pages #22

tcreations opened this issue May 25, 2017 · 3 comments

Comments

@tcreations
Copy link

tcreations commented May 25, 2017

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.

If I go to: https://tcreations.github.io/jQueryBadgesProject/src/
I do see the badges. is that what I am supposed to do instead of how it was specified in the instructions for the project?

@cmckni3
Copy link

cmckni3 commented Oct 28, 2017

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

@ParadiseArtist
Copy link

Thank you! I had the same problem and was totally stuck. This process fixed it. Yeay!

@cmckni3
Copy link

cmckni3 commented Jan 15, 2018

Glad that helped @ParadiseArtist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants