Display GitHub files on WordPress

I’ve been struggling a bit to find a good way to display files hosted on GitHub on my blog directly. I didn’t like that most plugins uses Gist which doesn’t allow for a nice collaboration. I have received some good recommendation about improving codes that I shared some time ago. I’d prefer a system where people can push a PR directly to my Git repo and, if I merge, the code is directly updated on the blog.