# How can I safely recover a branch when Sync with Main is missing changes?

**URL:** <https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530>\
**Category:** Need help\
**Created:** [October 12, 2026, 3:47am UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530 "2026-10-12T03:47:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubble-tom](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bubble-tom](https://forum.bubble.io/u/bubble-tom)\
**Post date:** [October 12, 2026, 3:47am UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/1 "2026-10-12T03:47:15Z")

</div>

I have a `new-feature` branch containing over a week of work, but Bubble’s branch comparison appears to be wrong.

Originally, Bubble said a global expression had been removed from `main`, even though it still existed and worked there.

To try to move forward, we eventually decided to remove that expression from `main` and create a replacement global expression because it was only used in two places. We updated those two usages to use the replacement and confirmed that everything worked correctly in `main`.

Now, when I sync `main` into `new-feature`, Bubble correctly identifies the original expression as removed—but completely omits the replacement expression. It detects other newly added global expressions, just not this one.

I also tested merging from a fresh branch created from `main`, with exactly the same result.

I could complete the sync and manually repair the expression in `new-feature`, but I’m concerned about what will happen when I later merge `new-feature` back into `main`. I also don’t know whether this is the only omitted change.

Has anyone encountered this? What is the safest process for recovering the `new-feature` branch without losing its work or overwriting valid changes already in `main`?

---

<div class="post-metadata">

**Author:** ![bubble-tom](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bubble-tom](https://forum.bubble.io/u/bubble-tom)\
**Post date:** [October 12, 2026, 9:36pm UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/3 "2026-10-12T21:36:14Z")

</div>

> [@douglasmaringa4](#):
>
> If this kind of branching issue keeps happening, it’s worth filing a bug report with Bubble support with the specific expression names so they can investigate the diff engine. I’ve seen this pattern across a bunch of Bubble projects — it’s not just you.

@douglasmaringa4 appreciate this response. I was going to follow that suggested path, but I was concerned that perhaps it was nothing to do with the global expression per se but just a corruption in bubbles branch comparison in general. Given you have seen this with global expressions I will use that as confidence that that is the issue and follow your prescribed recovery path. Thanks

---

<div class="post-metadata">

**Author:** ![fede.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fede.bubble/32/215574_2.png) [@fede.bubble](https://forum.bubble.io/u/fede.bubble)\
**Post date:** [October 12, 2026, 10:07pm UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/4 "2026-10-12T22:07:40Z")

</div>

I recommend you get in touch with our support team. They can take a look at yoir app and make sure everything is the way it should

---

<div class="post-metadata">

**Author:** ![bubble-tom](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bubble-tom](https://forum.bubble.io/u/bubble-tom)\
**Post date:** [October 13, 2026, 1:19am UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/5 "2026-10-13T01:19:09Z")

</div>

@fede.bubble I did get in touch with the support team TicketID #142364209 submitted 6 days ago. Still waiting for support.

---

<div class="post-metadata">

**Author:** ![fede.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fede.bubble/32/215574_2.png) [@fede.bubble](https://forum.bubble.io/u/fede.bubble)\
**Post date:** [October 13, 2026, 1:25am UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/6 "2026-10-13T01:25:06Z")

</div>

I’ll check with them, thanks for the ticket number

---

<div class="post-metadata">

**Author:** ![fede.bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/fede.bubble/32/215574_2.png) [@fede.bubble](https://forum.bubble.io/u/fede.bubble)\
**Post date:** [October 13, 2026, 3:17pm UTC](https://forum.bubble.io/t/how-can-i-safely-recover-a-branch-when-sync-with-main-is-missing-changes/401530/7 "2026-10-13T15:17:24Z")

</div>

following up here, looks like the team replied and will be escalating your issue
