# Main.blocks not updated when commiting

**URL:** <https://forum.makecode.com/t/main-blocks-not-updated-when-commiting/8462>\
**Category:** Help\
**Created:** [June 1, 2021, 9:50pm UTC](https://forum.makecode.com/t/main-blocks-not-updated-when-commiting/8462 "2021-06-01T21:50:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [June 1, 2021, 9:50pm UTC](https://forum.makecode.com/t/main-blocks-not-updated-when-commiting/8462/1 "2021-06-01T21:50:44Z")

</div>

I was working on this game and after I committed, it seemed like all the changes disappeared. So I look into the commit I want to restore, and there is only 1 changed file. (which is `main.ts`) The diff for `main.ts` looks fine but `main.blocks` was never updated in this commit:

> <https://github.com/UnsignedArduino/Procedurally-Generated-Platformer/commit/60b2b6d4de12f60c825a24ddef7d4e704e5b562b>

You can see when you browse the repo at this commit:

> **[UnsignedArduino/Procedurally-Generated-Platformer](https://github.com/UnsignedArduino/Procedurally-Generated-Platformer/tree/60b2b6d4de12f60c825a24ddef7d4e704e5b562b)**
>
> 60b2b6d4de12f60c825a24ddef7d4e704e5b562b

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/84a35e681f02808054019f83f83da18b87b33600.png)  
That `main.blocks` was stuck at the previous commit while `main.ts` is fine. Is there any way I can fix it?

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [June 2, 2021, 3:40pm UTC](https://forum.makecode.com/t/main-blocks-not-updated-when-commiting/8462/2 "2021-06-02T15:40:19Z")

</div>

Alright I just copied and pasted the TypeScript from that commit and reformatted all the blocks. It wasn’t fun to say the least 😂

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 7, 2023, 5:51am UTC](https://forum.makecode.com/t/main-blocks-not-updated-when-commiting/8462/3 "2023-02-07T05:51:04Z")

</div>

I just had to redo an entire commit, _block by block_ because of this. ☹ This was a _big_ one too. Out of every commit I’ve been making recently, it’s always the big ones that happen.

Does anyone have any solutions / ideas why this keeps happening?
