I thought this problem cause by the default resource route will point to the dns name,but in github gh-pages the dns will append the repo name.
how to solve this? thanks for reply.

add this in config will work.
url: http://yoursite.com/blog
root: /blog/
For some reason /blog vs /blog/ had a difference for me.
Most helpful comment
add this in config will work.