Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to shut off localization in git 1.8

I just updated my git to version 1.8 on OSX 10.8.2 following this tutorial and now git responds partially in my localization. e.g.

$ git status
# Auf Zweig master  
nothing to commit, working directory clean  

How can I shut this off?

like image 948
fabianmoronzirfas Avatar asked Oct 24 '12 07:10

fabianmoronzirfas


2 Answers

You could put the following in your ~/.profile (or ~/.bashrc),

export LANG=en_US

This will apply to all commands that use your locale, not just git

like image 43
dbr Avatar answered Nov 15 '22 12:11

dbr


You can use alias to specifically disable localization:

alias git="LANG=en_US git"

Put that in your .profile/.bashrc (or other shell startup script) to make it permanent.

like image 74
nneonneo Avatar answered Nov 15 '22 12:11

nneonneo