Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github pages showing old code

I have a rudimentary understanding of Github: I know how to create, add, commit, push and clone repositories. I've also started exploring Github pages to host my projects. My latest project I started in March and pushed it to a gh-page. I have since then refractored and improved the code and made quite a few changes. On my local server the changes are shown but after pushing to Github and making a new gh-page several times, I still see the old project.

Could someone please help.

like image 333
Siya Avatar asked Aug 20 '26 08:08

Siya


1 Answers

If it shows you non-fast-forward updates were rejected, that means your local and remote repository are out of sync because you or someone else made changes to the upstream repo and this could be a possible cause of your problem.

Try to fetch and then rebase or just use pull --rebase command.

Source: https://help.github.com/articles/dealing-with-non-fast-forward-errors

If this isn't the problem, does it show errors when pushing? And does you project have multiple branches?

like image 124
iacolippo Avatar answered Aug 22 '26 22:08

iacolippo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!