DEV Community

Discussion on: Recover a lost Git stash in two steps

Collapse
 
mathieuschopfer profile image
Mathieu Schopfer

This may fail if you don't use git in English. To quickly fix it:
alias git='LANG=en_GB git'

Collapse
 
meduzen profile image
Mehdi M.

:o

What is different when you use Git in another language? I didn't know it existed.

Collapse
 
mathieuschopfer profile image
Mathieu Schopfer

In French (I cannot tell for other languages), commit seems to have been translated by objet commit.

git fsck --unreachable returns
objet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
instead of
unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d

Thus, cut -d ' ' -f3 returns inatteignable instead of the commit tag.

Thread Thread
 
meduzen profile image
Mehdi M.

Ha oui, carrément. :D

Gonna update the article. Thanks a lot!