I am trying to discard gradlew.bat file, which was not modified but still in vscode it appears in modified section. It is not getting discarded. In difference it doesnt show any difference between these 2 files.
I tried git status and get response as modified: android/gradlew.bat
git diff returns:
diff --git a/android/gradlew.bat b/android/gradlew.bat
index ac1b06f9..107acd32 100644
--- a/android/gradlew.bat
+++ b/android/gradlew.bat
@@ -1,89 +1,89 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
:

EDIT:
I fixed this by using hard reset, follow below commands:
git rm --cached -r .
git reset --hard