0
我正在使用命令行GIT GNU bash作为GIT客户端来检查我在Eclipse中工作的Java项目。GIT bash没有通过“git diff”识别对“.classpath”文件的更改
作为工作的一部分,我更改了一些项目构建设置,这些设置在Eclipse中记录在项目根目录中名为“.classpath
”的隐藏文件(.dot)中。
出于某种原因git diff
拒绝承认变化:
[email protected] MINGW64 /c/_GIT/myserver (BRANCH1)
$ git diff .classpath
<==== crickets. Empty output!!!!
不过,我可以看到该文件发生了变化,最近的时间戳(并且可以证明它通过明确做git commit
改变和推压的变化):
[email protected] MINGW64 /c/_GIT/myserver (BRANCH1)
$ git commit -m "remove test" .classpath
[BRANCH1 bd4c1c5] remove test
1 file changed, 28 insertions(+)
create mode 100644 .classpath
[email protected] MINGW64 /c/_GIT/myserver (BRANCH1)
$ git push
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 610 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Simple Bitbucket Commit Checker
remote: Create pull request for BRANCH1:
remote: http://GIT_URL....
remote:
To http://GIT_URL....
77981fe..bd4c1c5 BRANCH1 -> BRANCH1
GNU bash中,版本46年3月4日(2)-release下(x86_64-PC-MSYS)