diff --git a/fastlane/Fastfile b/fastlane/Fastfile
index 21c1728c9c8c1a86208bfc31b7422a25a720ba1a..138932b405c293f6c2270df03b6775ec172b6308 100644
--- a/fastlane/Fastfile
+++ b/fastlane/Fastfile
@@ -291,6 +291,7 @@ def rebase_main_onto_current_branch
   UI.message("Current branch: #{current_branch}")
 
   # Switch to main and update it
+  sh("git checkout -- .")
   sh("git checkout main")
   sh("git pull origin main")
   sh("git rebase #{current_branch}")