I update index.html and delete files, but github does not update

Asked

Viewed 479 times

3

I started a project on Github (I’m starting with it now), and everything was working perfectly. All of a sudden, he stopped updating. I, within the Github site itself, delete files, change the content of the index.html and nothing update it, when I open the project link.

Updated project

Project page

Will I have to delete this repository and redo?

1 answer

2


The possible error

Check the time of your posts with the Github site’s time zone,because this is a very common error in which it is reported since when you are going to post something on Github there is this time zone difference causing the user to have to wait the difference time between the time zones in order to appear the update of his posts.

How to fix

Looking deeper, I discovered that their UTC is the Pacific Time (UTC-8) where their servers are located or their difference to the time of Brazil is 5 hours.

After all what is UTC ?

The UTC time, as we can see, is the reference time of the Greenwich Meridian, which crosses the United Kingdom, where in particular, there is a famous observatory - The Royal Observatory, located in Greenwich Park - which has existed since 1884. This is therefore the hourly reference used worldwide.

Follows ISO standards - 6709 to be able to define the UTC of each place.

But what is ISO - 6709 ?

ISO - 6709 is a standard representation of geographic point location by coordinates and is the international standard for the representation of latitude, longitude and altitude for geographic point locations.

Adjust time zone

You can try to make this difference to match the schedules,add in the headers while doing the post, :

curl -H "Time-Zone: America/Sao_Paulo" -X POST https://api.github.com/repos/github/linguist/contents/new_file.md

This part of the code "Time-Zone: America/São Paulo" will make you take the time of Brasilia(UCT - 3) and Sincronize with your posts.

NOTE : If you are in other places outside the state of SP, I suggest you take a look at this list then and relocate according to your place :

    America/Fortaleza - MA,PI,CE,RN,PB
    America/Araguaina - Tocantins
    America/Cuiaba - Mato Grosso
    America/Campo_Grande - Mato Grosso do Sul
    America/Belem - Pará,Amapa
    America/Porto_Velho - Rondonia

There are at most 556 zones that follow the UTC, take care to make the appropriate changes and always look for UTC that follows ISO 6709.

What if it wasn’t ? So...

Wait a while to see if you update the information,more to be precise,this time zone difference(5 hours).

Articles/Documentation to find solutions to several other problems :

https://help.github.com/articles/troubleshooting-jekyll-builds/

https://www.reddit.com/r/github/comments/3vihrq/help_updating_my_github_pages/

https://stackoverflow.com/questions/20422279/github-pages-are-not-updating

Documentation for better information

Take a look at the following documentation,for better understanding :

https://developer.github.com/changes/2014-03-04-timezone-handling-changes/

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

  • Great answer, friend. Very useful information. In my case, the problem was occurring with Visual Studio Code. I realized that while I was using it to upload the files to Github, there was always a bug when importing a folder, and it didn’t push the files anymore. Using Github’s own control tool, in a new repository, I was able to solve the problems.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.