With new WordPress plugin called Repo Widget you can easily embed any GitHub repository in your WordPress site and display latest information like Repo title, Cloning URLs (HTTP, SSH, GIT), Repo description, Last commit information.
Install and activate the plugin Repo Widget. It provides you a simple shortcode for embedding GitHub repository in your website’s shortcode supported areas like posts, pages, CPTs etc
Example:
[repo user="octocat" repo="Hello-World"]