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)