# Local repo not matching GitHub Pages 

**URL:** <https://talk.jekyllrb.com/t/local-repo-not-matching-github-pages/4636>\
**Category:** Uncategorized\
**Created:** [June 22, 2020, 10:39pm UTC](https://talk.jekyllrb.com/t/local-repo-not-matching-github-pages/4636 "2020-06-22T22:39:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranne](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@ranne](https://talk.jekyllrb.com/u/ranne)\
**Post date:** [June 22, 2020, 10:39pm UTC](https://talk.jekyllrb.com/t/local-repo-not-matching-github-pages/4636/1 "2020-06-22T22:39:40Z")

</div>

Hi,

I normally edit my blog on my local computer and use `bundle exec jekyll serve` to host it. In my local computer everything looks great, but when I push it to GitHub using `push origin master` it doesn’t look the same. Here are two examples:

1. About Me image is missing in my GitHub Page:  
[https://rachelleanne.com/about-me/](https://rachelleanne.com/about-me/)

2. The OWASP category is missing the Injection post:  
[https://rachelleanne.com/category/owasp/](https://rachelleanne.com/category/owasp/)

For the first example, I double-checked to make sure that the image directory is the right one in GitHub, and it is, but it’s being displayed as an error in GitHub pages.

In both cases, when I host it from my local computer my About Me image and the Injection post is there in the OWASP category so I’m not sure what the difference is. I tried recloning the repo again, from GitHub to my computer in case I was missing files or something weird was going on, but they’re identical in the code so I’m not sure what’s happening here.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![ckruse](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ckruse/32/16_2.png) [@ckruse](https://talk.jekyllrb.com/u/ckruse)\
**Post date:** [June 23, 2020, 1:34am UTC](https://talk.jekyllrb.com/t/local-repo-not-matching-github-pages/4636/2 "2020-06-23T01:34:13Z")

</div>

Hey @ranne - welcome to the community.

This is typically a mismatch in the version of Jekyll. Github Pages uses Jekyll 3.8.7 and I’m guessing you’re using 4.x locally.

To ensure the versions match, I highly recommend using the `github-pages` gem.

Docs here:

> **[GitHub Pages](https://jekyllrb.com/docs/github-pages/#the-github-pages-gem)**
>
> GitHub Pages are public web pages for users, organizations, and repositories, that are freely hosted on GitHub’s github.io domain or on a custom domain name of your choice. GitHub Pages are powered by Jekyll behind the scenes, so they’re a great way...
