我在文件中做了一些更改,但是当我检查出最新的存储库状态时,没有反映出这些更改。
我的文件是.project
该文件中的提交输出
命令git log --all --oneline -- .project
输出:
ba1cf9e清单更新
cc7a9ab联系impl
483f298 dd
输出git show
命令:git show ba1cf9e -- .project
输出:
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>
现在文件的最新状态是
命令vim .project
输出:
<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>