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
problem with rake deploy #54
Comments
somehow, i was able to overcome with manually trying what the >rake deploy would do Hope this helps others. solution
On branch master
warning: push.default is unset; its implicit value has changed in git config --global push.default matching To squelch this message and adopt the new behavior now, use: git config --global push.default simple When push.default is set to 'matching', git will push local branches Since Git 2.0, Git defaults to the more conservative 'simple' See 'git help config' and search for 'push.default' for further information. Counting objects: 118, done. |
The root cause of this issue probably was that the local master branch was inconsistent with remote master branch. Following below instruction to fix this issue. cd _deploy
## change directory to _deploy
git checkout master
## checkout local master branch
git branch -m master2
## rename local master to master2
git branch -r
## list of remote branch
git checkout origin/master -b master
## create a new local master branch and tracking remote master branch
git pull
## pull the remote master branch, insure that the local master branch has Already up-to-date.
git branch -d master2
## delete local master2 branch if not needed.
|
I tried to deploy the generated pages and am faced with error
I had tried > rake generate and rake preview ( to check localhost changes)
everything seems to be fine.
Steps:
(https://github.com/ravizombie/ravizombie.github.io.git)
The doc is perfect, except for some notes whensomeone is faced with errors like these.
problem with rake deploy
Ravis-MacBook-Pro:octopress ozeoit$ rake deploy
Deploying branch to Github Pages
Pulling any updates from Github Pages
cd _deploy
warning: no common commits
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/ravizombie/ravizombie.github.io
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
If you wish to set tracking information for this branch you can do so with:
cd -
rm -rf _deploy/assets
rm -rf _deploy/atom.xml
rm -rf _deploy/blog
rm -rf _deploy/favicon.png
rm -rf _deploy/images
rm -rf _deploy/index.html
rm -rf _deploy/javascripts
rm -rf _deploy/robots.txt
rm -rf _deploy/sitemap.xml
rm -rf _deploy/stylesheets
Copying public to _deploy
cp -r public/. _deploy
cd _deploy
Committing: Site updated at 2015-10-02 19:59:00 UTC
[master 7a260d7] Site updated at 2015-10-02 19:59:00 UTC
2 files changed, 2 insertions(+), 2 deletions(-)
Pushing generated _deploy website
To https://github.com/ravizombie/ravizombie.github.io.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/ravizombie/ravizombie.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Github Pages deploy complete
cd -
The text was updated successfully, but these errors were encountered: