Skip to content

Not able to push into gh-pages #22

Open

Description

@tcreations

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?

Activity

  1. cmckni3 commented on Oct 28, 2017

    @cmckni3

    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
  2. ParadiseArtist commented on Jan 15, 2018

    @ParadiseArtist

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

  3. cmckni3 commented on Jan 15, 2018

    @cmckni3

    Glad that helped @ParadiseArtist!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions