cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Git: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Type1Tony
Newcomer
0 Kudos
3,820

When trying to commit my Fiori project to Git from SAP Business Application Studio, I'm getting the following error:

"Git: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)"

Any idea how I get round this? 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

506403
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try to run : 

Command: 
zypper in glibc-locale
export LC_ALL=en_US
echo $LC_ALL


Example: 
root@:/etc# zypper in glibc-locale
Loading repository data...
Reading installed packages...
'glibc-locale' is already installed.
No update candidate for 'glibc-locale-2.38-150600.14.17.2.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.

root@:~# export LC_ALL=en_US
root@:~# echo $LC_ALL
en_US


root@:/etc# cat /etc/locale.conf
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

 

efegur
Discoverer
0 Kudos

Edit: I had the same issue. 

The error you have seen is a warning, and the actual error is written in the Git log.

In my case, it was an SSL connection issue. The following steps worked for me:
In BAS, execute the command cd ~/.ssh && ssh-keygen  
use the command cat id_rsa.pub to retrieve your SSH key
Login to your git webpage, go to your profile settings to upload the SSH key.
Test your connection using the command ssh -T git@github.com.
If the connection is successful, try cloning or pushing the repository again.

Please reward it if it is helpful.
Efe