1

After some Pull cmd I have got 3 files that were 'changed'. When I checked these files I saw the changes were just in whitespace format. OK, I press 'Revert changes' (R):

git ext UI

All blinked then... I see these exact 3 files! Again! OK, I choose in the right window - 'ignore changes in whitespaces'. 'Changes' are gone from preview. Files stay 'changes'.

I tried to stage/revert or unstage/revert them. Tried to delete physically then bash: git checkout -- . They are still in change list!

I tried:

  • git stash save --keep-index
  • git stash drop
  • git checkout -- .

They are ALIVE!!

How on Earth I could ELIMINATE these 'changes' in files?

Community
  • 1
  • 1
Andrey St
  • 388
  • 3
  • 10

1 Answers1

1

Solution:

git rm .gitattributes
git add -A
git reset --hard

Source: Unstaged changes left after git --reset hard

Community
  • 1
  • 1
Andrey Burykin
  • 700
  • 11
  • 23