Git commit changes not reflected in current state

I made some changes to the file, but the changes are not reflected when I checked the last state of the repository.

My .project file

output commits in this file git log --all --oneline -- .project
Exit command :

Manifest update ba1cf9e
cc7a9ab contact impl
483f298 dd

git show output

Command: git show ba1cf9e -- .project
Exit:

commit ba1cf9ecb3e5bfd96e77eaf99a5f76e454dbade0
Author: XXXX <XXXXX@XXXX.com>
Date:   Tue Mar 20 22:38:22 2018 +0530

    manifest update

diff --git a/contactApi/.project b/contactApi/.project
index 1b6d8a3..51e5d92 100644
--- a/contactApi/.project
+++ b/contactApi/.project
@@ -1,12 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-  <name>contactApi</name>
-  <buildSpec>
-    <buildCommand>
-      <name>org.eclipse.jdt.core.javabuilder</name>
-    </buildCommand>
-  </buildSpec>
-  <natures>
-    <nature>org.eclipse.jdt.core.javanature</nature>
-  </natures>
-  <linkedResources> </linkedResources>
-</projectDescription>
\ No newline at end of file
+       <name>contactApi</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.ManifestBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.SchemaBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>org.eclipse.pde.PluginNature</nature>
+       </natures>
+</projectDescription>

now the last state of the file is vim .project Exit Command :

<projectDescription>
  <name>contactApi</name>
  <buildSpec>
    <buildCommand>
      <name>org.eclipse.jdt.core.javabuilder</name>
    </buildCommand>
  </buildSpec>
  <natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
  </natures>
  <linkedResources> </linkedResources>
</projectDescription>
+4
source share

Source: https://habr.com/ru/post/1696056/


All Articles