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

npm run push fails sometimes #76

Open
geekodour opened this issue Jul 28, 2017 · 0 comments
Open

npm run push fails sometimes #76

geekodour opened this issue Jul 28, 2017 · 0 comments
Labels

Comments

@geekodour
Copy link
Owner

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.
@geekodour geekodour added the bug label Jul 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant