Skip to content

Command Breaks After Deleting the gh-pages Branch #349

@JimLynchCodes

Description

@JimLynchCodes

Hi, I was pushing and my code was not being updated so out of frustration I deleted the entire gh-pages branch.

Now the gh-pages command doesn't work at all...

npm run deploy

> [email protected] deploy /Users/jlynch/Git-Projects/Phaser-Fish/phaser-fish-single-player
> gh-pages -d ./build

fatal: couldn't find remote ref refs/heads/gh-pages

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: `gh-pages -d ./build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jlynch/.npm/_logs/2020-04-08T19_14_51_596Z-debug.log

I would expect it to just re-create the gh-pages branch as I did when I ran the command for the first time...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions