This may fail if you don't use git in English. To quickly fix it: alias git='LANG=en_GB git'
alias git='LANG=en_GB git'
:o
What is different when you use Git in another language? I didn't know it existed.
In French (I cannot tell for other languages), commit seems to have been translated by objet commit.
commit
objet commit
git fsck --unreachable returns objet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d instead of unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
git fsck --unreachable
objet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2d
Thus, cut -d ' ' -f3 returns inatteignable instead of the commit tag.
cut -d ' ' -f3
inatteignable
Ha oui, carrément. :D
Gonna update the article. Thanks a lot!
We're a place where coders share, stay up-to-date and grow their careers.
This may fail if you don't use git in English. To quickly fix it:
alias git='LANG=en_GB git':o
What is different when you use Git in another language? I didn't know it existed.
In French (I cannot tell for other languages),
commitseems to have been translated byobjet commit.git fsck --unreachablereturnsobjet commit inatteignable 977ee79082f2e1179c3d2156f8f0e6c66682ea2dinstead of
unreachable commit 977ee79082f2e1179c3d2156f8f0e6c66682ea2dThus,
cut -d ' ' -f3returnsinatteignableinstead of the commit tag.Ha oui, carrément. :D
Gonna update the article. Thanks a lot!