gemini-cli - 💡(How to fix) Fix asked gemini to review a github PR, it stashed unrelated changes in master while doing so [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25236Fetched 2026-04-13 05:45:36
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

What happened?

I asked gemini to review a PR by giving it the github URL. While doing so, it decided to stash unrelated changes I had in my master branch. It didn't ask if it could do this, it didn't say it was going to do it, and it didn't unstash them after it finished. It took me a while to figure out that the changes weren't lost, but were stashed, and that this particular session was the cause of it.

What did you expect to happen?

I had the crazy idea that gemini would just review the PR like I asked it to and not mess around with files in my local directories.

Client information

  • CLI Version: 0.37.1
  • Git Commit: 3b2d4f100
  • Session ID: 604de479-63d7-490f-8864-1ef91ffe397c
  • Operating System: darwin v24.10.0
  • Sandbox Environment: no sandbox
  • Model Version: auto-gemini-3
  • Auth Type: oauth-personal
  • Memory Usage: 1.02 GB
  • Terminal Name: iTerm2 3.6.9
  • Terminal Background: #ffffff
  • Kitty Keyboard Protocol: Supported

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

  • Gemini should be updated or configured to avoid stashing unrelated changes without user confirmation.

Guidance

  • Review Gemini's documentation for any configuration options related to stashing changes, as this behavior may be customizable.
  • Check for any available updates to the Gemini CLI, as version 0.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING