# How can a push to Git make Flux fetch the new commit right away instead of waiting for the GitRepository interval?

Flux CD, Medium (Advanced), Integration. https://k8wiz.com/uquiz/how-can-a-push-to-git-make-flux-fetch-the-new-commit-right-away-instead-of-waiting-for-the-gitrepository-interval

- A. Lower the GitRepository interval to 0 so source-controller polls nonstop
- B. Run flux bootstrap from a CI job after every push
- C. Create a Receiver and point the Git provider's webhook at its URL
- D. Add a git.fluxcd.io/push annotation to the GitRepository

**Answer:** Create a Receiver and point the Git provider's webhook at its URL

**Explanation:** notification-controller serves a webhook path for each Receiver and shows it in status.webhookPath. When a verified event arrives, it asks for an immediate reconciliation of the objects listed in the Receiver. The webhook-receiver Service has to be reachable from the Git provider, for example through an Ingress.
