Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

npm run push fails sometimes #76

Open
@geekodour

Description

@geekodour

There is some problem with the subtree command, sometimes even if the remote branch is older than the local branch the push won't happen.

Error log:

error: failed to push some refs to 'https://github.com/geekodour/gitpushblog.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
child_process.js:526
    throw err;
    ^
Error: Command failed: git subtree push --prefix dist origin gh-pages
To https://github.com/geekodour/gitpushblog.git
 ! [rejected]        59691beac925775782ef2268ed4bd4f3e6d7c09e -> gh-pages (non-fast-forward)
error: failed to push some refs to 'https://github.com/geekodour/gitpushblog.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions