Stop Using git checkout
Git 2.23 introduced two commands that replace the two different jobs git checkout used to do: git switch — change or create…
When you encounter merge conflicts while trying to apply stashed changes using git stash apply, and you just want to force apply the changes without any hassle, you can use the following workaround:
git checkout stash -- .
This command overwrites the files in the current directory (.) with their stashed versions, effectively forcing the stashed changes to be applied. It permanently overwrites any uncommitted or unstaged changes in the affected files, so use it with caution.
To apply stashed changes to specific files, modify the command:
git checkout stash -- path/to/file1 path/to/file2
Using git checkout stash -- provides a way to force apply stashed changes. It allows you to quickly resolve merge conflicts by favoring the stashed version of the files.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com