Placing Octopress on gh pages

I created the username.imtqy.com repository and I moved the current Octopress blog files to the master branch to track the changes I made to the entire blog.

Then I want it to appear in the gh-pages branch, so I used rake setup_github_pages , then rake generate and rake deploy[gh-pages] , but git rejected it with the following message:

 To https://github.com/username/username.imtqy.com ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/username/username.imtqy.com' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (eg 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. ## Github Pages deploy complete cd - 

How can i solve this? I want to put the _deploy folder in gh-pages and the rest in the master branch.

Is it possible?

+4
source share
1 answer

I finally found a solution thanks to Tomoy Hirano NiceCabbage .

In his Octopress and gh-pages post, he mentioned using BitBucket as a repository for the actual Octopress source code instead of using GitHub.

I find this solution very convenient since my GitHub repository for the Octopress blog now contains the _deploy folder and the rest is in BitBucket. This is not really an exact answer, but this workaround relates to the _deploy , and the rest of the download is somewhere in Interwebz.

Hope this helps someone!

+2
source

Source: https://habr.com/ru/post/1492219/


All Articles