56

I was using hg, now I am converting to Git.

But after installing it, every time I do "git diff" or "git log", I get this error: WARNING: terminal is not fully functional.

How do I get rid of this?

iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169

2 Answers2

108

Q: How are you connecting to Git?

For example, if you're using Cygwin on Windows, try this:

TERM=msys

If you're on Linux (or connecting to a Linux server via putty), then try this:

export TERM=msys

If you're running from a Windows command prompt:

<Rclick>Computer, Properties, 
  [Advanced System Settings], [Advanced], [Environment Variables]
  Create a new System variable "TERM", value "msys"
paulsm4
  • 114,292
  • 17
  • 138
  • 190
  • thank you! was using windows! – iCodeLikeImDrunk Jun 27 '12 at 04:22
  • 10
    To set it once in Windows, use `set TERM=msys`. To set it permanently, use `setx TERM msys /M`. – Iain Samuel McLean Elder Jan 07 '14 at 11:46
  • 3
    I had *"dumb"* in there. It was introduced by the installation of *"Strawberry Perl"* modifying system environment variables. Edited my `/~.bashrc` file adding `export TERM=cygwin` to get ti working. So a little different to what has been answered here (and with the duplicate). – hakre May 16 '14 at 14:09
  • 5
    Hi Paulsm4. Thanks, your answer helped me. Can you please tell me `why` this error occurs ? What is this `term` and what does it do ? – Erran Morad Jun 06 '14 at 22:23
  • @paulsm4, What exactly does "not fully functional" mean anyway? I ignored the error, didn't fix it, yet things seem to be pretty fine. – Pacerier Oct 16 '15 at 05:00
0

In case someone gets this using Git Extensions, check the setting for Path to linux tools.... Mine was set to C:\cygwin. Changing it to C:\Program Files (x86)\Git\bin\ fixed it for me.

Clay
  • 10,885
  • 5
  • 47
  • 44