I fixed the problem using git submodules. Now I can export my org files to a folder in the master repository. This folder is actually a submodule of the same gh-pages repositories. You can check my org-publish-project-alist in the repository and page . Now my development cycle;
- Edit to
master then export html - Add, paste
gh-pages directory - Add, paste
master root directory
First, I added the gh-pages branch, as said in github , then added the gh-pages branch as a submodule:
[ slmn@uriel org-test](gh-pages)$ git checkout master [ slmn@uriel org-test](master)$ git submodule add -b gh-pages git@github.com :selman/org-test.git gh-pages [ slmn@uriel org-test](master)$ git commit -m "branch added as submodule"
index.org exported as html to the gh-pages directory:
[ slmn@uriel org-test](master)$ cd gh-pages/ [ slmn@uriel gh-pages](gh-pages)$ git add . [ slmn@uriel gh-pages](gh-pages)$ git commit -m "pages updated" [ slmn@uriel gh-pages](gh-pages)$ git push
The changed submodule is added to master :
[ slmn@uriel gh-pages](gh-pages)$ cd .. [ slmn@uriel org-test](master)$ git add . [ slmn@uriel org-test](master)$ git commit -m "pages updated" [ slmn@uriel org-test](master)$ git push
Selman ulug
source share