0

I've just installed git on a newly imaged laptop with windows 7 and I get this message when I open git shell:

Welcome to Git (version 1.9.4-preview20140611)

Run 'git help git' to display the help index. Run 'git help ' to display help for specific commands. sh.exe": ÿþa: command not found sh.exe": ÿþe: command not found sh.exe": ÿþe: command not found

I also found that no options set in the .profile are set, so tried source .profile and .bashrc but this results in the same error (sh.exe": ÿþe: command not found), anyone else solved this problem?

You should know this is a corporate laptop where my home directory is on a network share so git's home is h:\ instead of C:\Users\\ not sure if this complicates things.

1 Answer 1

3

Convert your files from UTF-16 to a single byte encoding like ASCII. Make sure any editor you use doesn't change it back.

The "ÿþ" characters are the 16-bit little endian version of the Unicode byte order mark.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you kind sir, worked like a charm. Now I'm not stuck typing ls -lh all the time like some kind of dinosaur!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.