# An ImageUpdateAutomation checks out main and pushes to flux-image-updates, which already exists from an earlier run. With default feature gates, what does the next push do?

Flux CD, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/an-imageupdateautomation-checks-out-main-and-pushes-to-flux-image-updates-which-already-exists-from-an-earlier-run-with-default

- A. Adds the new commit on top of the existing remote branch
- B. Overwrites the branch with main plus the new changes
- C. Fails until someone deletes the existing branch
- D. Pushes to main because the push branch exists

**Answer:** Overwrites the branch with main plus the new changes

**Explanation:** The GitForcePushBranch feature gate is on by default, so the controller rebuilds the push branch from the checkout branch on every run and force pushes it. That keeps the branch current with main, and an open pull request just updates. With the gate set to false, updates are made on top of the existing commits, and a stale branch can make the automation fail until it is deleted or refreshed.
