【发布时间】:2015-01-30 19:07:40
【问题描述】:
我正在克隆一个 git 存储库,并且正在查找已更改的文件。我查看了其他一些有类似问题的帖子,但到目前为止,这些步骤似乎没有帮助。我已经尝试调整 autocrlf 设置、案例设置和其他一些配置,但是当我执行“git status”时,我仍然看到修改过的文件。
.git/config 核心部分的配置是:
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = false
precomposeunicode = true
autocrlf = false
显示为已修改路径的截断示例是:
modified: applications/test/Dictionary/Make/files
modified: applications/test/Dictionary/Make/options
modified: applications/test/Dictionary/Test-Dictionary.C
modified: src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.H
modified: src/OpenFOAM/interpolations/primitivePatchInterpolation/PrimitivePatchInterpolation.H
modified: src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.C
modified: src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrix.H
modified: src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixATmul.C
modified: src/OpenFOAM/matrices/LduMatrix/LduMatrix/LduMatrixOperations.C
显示为未跟踪的截断路径示例是:
applications/test/Dictionary/Test-dictionary.C
applications/test/Dictionary/testDict
applications/test/Dictionary/testDict2
applications/test/Dictionary/testDictInc
applications/test/Dictionary/testDictRegex
applications/test/Dictionary/value
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrix.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrix.H
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixATmul.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixOperations.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixPreconditioner.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixSmoother.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixSolver.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixTemplates.C
src/OpenFOAM/matrices/LduMatrix/LduMatrix/lduMatrixUpdateMatrixInterfaces.C
每次配置更改后我都做了以下操作:
rm -rf *
git reset --hard
git status
Git 存储库是 git://github.com/OpenFOAM/OpenFOAM-2.3.x.git,当前操作系统是 MacOS X 10.9.5。 Git 版本是 1.9.3。文件系统是 HFS+(不区分大小写)。
【问题讨论】: