git cache un fichier
$ git stash -- filename.ext
Dark Dunlin
$ git stash -- filename.ext
git stash save -- just_my_file.txt
git checkout stash@{0} -- <filename>
git restore -s stash@{0} -- <filename>
# interactive
git stash -p
# interactive with message
git stash -pm "message"
git stash push -m "describe changes to filename.ext" filename.ext