Skip to content

Instantly share code, notes, and snippets.

@demagu
Last active September 8, 2022 17:28
Show Gist options
  • Save demagu/729c0a3605a4bd2e4c3d to your computer and use it in GitHub Desktop.
Save demagu/729c0a3605a4bd2e4c3d to your computer and use it in GitHub Desktop.
Could not restore untracked files from stash

How to fix 'Could not restore untracked files from stash' issue

Convert a stash to a temporary branch

git stash branch STASHTEMPBRANCH

Apply your stash

git stash apply

Delete untracked files & stash remaining files

git stash

@bohehe
Copy link

bohehe commented Apr 15, 2020

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment