Answers for "git stash retrieve one file"

0

git stash changes to particular file

git stash push <path>
Posted by: Guest on February-25-2021
0

git stash retrieve one file

# To retrieve a specific file from a previous staash
# any of these alternatives will do
git checkout "stash@{0}" -- my-stashed-file.xyz
git show "stash@{0}":my-stashed-file.xyz  >  my-renamed-stashed-file.xyz
git show "stash@{0}":./path/to/my-stashed-file.xyz > my-renamed-stashed-file.xyz
Posted by: Guest on January-18-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language