Re: [PATCH 0/5] Advice on checkout dirty files
- From
Arsh Srivastava <arshsrivastava00@gmail.com>
- Date
- Mar 10, 2026, 10:45 UTC
- Message-ID
- <CAOAgETMM_TTQYb618va9knEcwWMwVKmnY7L6FNVcRvnso8JoWQ@mail.gmail.com>
- In-Reply-To
- <CAOAgETPnZww2vB1zz37nRNEJnmnDjwWyEPDHjRFuijin3memyg@mail.gmail.com>
Hi,
Thank you for the feedback!
That's a great point. Using "git checkout -m" is indeed more convenient when the user wants to carry their changes over to the new branch, as it merges the local modifications into the new branch in a single step rather than requiring stash, checkout, and unstash separately.
I will update the advice message to mention "git checkout -m" as the primary suggestion when the intent is to carry changes over, and keep git stash push/pop as an alternative for when the user wants to temporarily set changes aside.
Will send a v2 shortly.
Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>