Home > Mobile >  windows git shows difference for whole file
windows git shows difference for whole file

Time:12-15

as i am using below setup for my work station
windows, intellij idea

till now everything was working fine with changes in intellij and was able to see difference using git diff command.
but suddenly now even if i am making single line change in .java file it shows whole file in git diff command

also i checked my intellij which shows CRLF on right bottom corner.

and in my c:/users/umeshuser/.gitconfig which is as below

[user]
    email = [email protected]
    name = UmeshGoti
[core]
    autocrlf = true
    safecrlf = false


and below is config file available in my root project/.git/config

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = https://{bitbucketURL}/backend-api.git
    fetch =  refs/heads/*:refs/remotes/origin/*
[branch "API_PROD"]
    remote = origin
    merge = refs/heads/API_PROD
[branch "API_DEV"]
    remote = origin
    merge = refs/heads/API_DEV

i have tried by uninstalling git and intellij then also issue is not resolved

can someone please help me to solve this issue

please note just before 2-3 days i think updated windows OS. so, is there any issue with that also

also intellij diff tool shows me below formats CR and CRLF enter image description here

please advice me to resolve this issue

Thanks in advance

CodePudding user response:

You should select the correct line ending from bottom right panel of the intellij

https://i.stack.imgur.com/rLtOp.png

  • Related