GitHub Pages Precedence -
say have following repositories on github:
caffinatedmonkey (user) │ ├── caffinatedmonkey.github.io │ └── tree │ └── master │ └── foo │ └── index.html └── foo └── tree ├── master └── gh-pages └── index.html
if go caffinatedmonkey.github.io/foo, page shown? page takes precedence, project page, https://github.com/caffinatedmonkey/foo/tree/gh-pages/index.html
or user page, https://github.com/caffinatedmonkey/caffinatedmonkey.github.io/tree/master/foo/index.html
?
user pages "take precedence", not in per url basis. if urls don't collide, having user page disables project pages.
in order work arround can have gh-pages branch of project page set submodule of user.github.io
repo.
cd user.github.io git submodule add -b gh-pages https://github.com/user/project.git git submodule update git commit -m 'added submodule project' git push
Comments
Post a Comment