Encoding problem in Git

Asked

Viewed 820 times

2

I did clone a large project but many of the files were in unstage and Deleted. I realized it was the file name encoding so I set it in utf-8 like this:

git config gui.encoding utf-8

After that the file names went back to normal but some didn’t work, they were considered deleted by git:

inserir a descrição da imagem aqui

I realized that the same were to be added but with the correct name: inserir a descrição da imagem aqui

Given this I can’t fix my branch!

  • It’s just the name reference in GIT, it considers that you deleted the files with wrong name and is adding the files with the correct name, don’t worry you won’t lose your files.

  • I understand, but I need to handle these files, but since their reference is broken, I can’t control it. I need to correct the name reference.

  • I think when you commit the references will be correct, with the correct names.

  • Most files did, but some remained deleted. I tried to check out the last version and rename but it didn’t work.

1 answer

1


Half the problem was solved when the encoding was set to utf-8, but the terminal is possibly in iso which I recommend changing the terminal settings.

Right-click > Options > Windows > UI language = utf-8

Browser other questions tagged

You are not signed in. Login or sign up in order to post.