Git rebase가 실패하고 ‘다음 파일에 대한 로컬 변경 사항을 병합으로 덮어 씁니다’. 로컬 변경이 없습니까? to api permissions When you have resolved this

다음은 업스트림으로 푸시하기 위해 내 버그 수정 브랜치를 마스터 브랜치에 병합하려고 시도한 내용입니다. 버그 픽스 브랜치가 생성 된 이후로 마스터에 일부 업스트림 변경 사항이 적용되었으며 이제 리베이스를 거부합니다.

오류가 발생하는 파일은 열 때 비교되지 않습니다. 추가, 제거 또는 이름이 변경된 파일이 없습니다. 어떤 것도 무시되지 않으며 추적되지 않거나 준비되거나 준비되지 않은 것도 없습니다. 리베이스가 실패하는 이유에 대해 완전히 난처합니다.

나는 OS X 10.6.6 및 git 1.7.4에 있습니다.

.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git rebase bug586-test master-test
First, rewinding head to replay your work on top of it...
Applying: - comiitting code related to api permissions
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
    inc/data.inc
    templates/apipermissions_tpl.inc
    templates/currencies_tpl.inc
Please, commit your changes or stash them before you can merge.
Aborting
Failed to merge in the changes.
Patch failed at 0001 - comiitting code related to api permissions

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git status
# Not currently on any branch.
nothing to commit (working directory clean)



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git rebase --abort
HEAD is now at 5efccf1 - comiitting code related to api permissions



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git log -n10 --oneline
5efccf1 - comiitting code related to api permissions
a8a5ee4 Style changes for IE
cfca618 Style changes for IE
8a69de6 Style changes for IE
8946585 - comiitting code related to api permissions - fixed an html error in the currencies template
5fba0a9 Merges the 1.11b branch bugfixes and changes into trunk
ef57049 Andrew Commiting on Blakes behalf on changes he made to transfers; Also an Indue GW balance fix; debitcarupload fix for LSN
69e4313 Fixed an issue with Support From email
9058fb6 Sets the svn property svn:eol-style to LF, to enforce unix style line endings
240839e Fixes up a lot of the whitespace issues.



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git checkout bug586-test
Switched to branch 'bug586-test'



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git log -n10 --oneline
b7b1f8a Resolves #586, Postback on deposit
5fba0a9 Merges the 1.11b branch bugfixes and changes into trunk
ef57049 Andrew Commiting on Blakes behalf on changes he made to transfers; Also an Indue GW balance fix; debitcarupload fix for LSN
69e4313 Fixed an issue with Support From email
9058fb6 Sets the svn property svn:eol-style to LF, to enforce unix style line endings
240839e Fixes up a lot of the whitespace issues.
cf27b6f - bug that came up with transferring. The transfer page had a hidden field called to, which was taking precedence over cards and usercard which would throw the system out a bit
7c21a81 Fixes #603, new add transaction form, journalled.
01e6292 Removes a pile of resource forks
880c5bc - bug that came up with transferring. The transfer page had a hidden field called to, which was taking precedence over cards and usercard which would throw the system out a bit



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git rebase master-test bug586-test
First, rewinding head to replay your work on top of it...
Applying: Resolves #586, Postback on deposit
Using index info to reconstruct a base tree...
<stdin>:52: trailing whitespace.
                'name' => 'Invoice Transfer Out',
<stdin>:175: trailing whitespace.

warning: 2 lines add whitespace errors.
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
    templates/deposit_tpl.inc
Please, commit your changes or stash them before you can merge.
Aborting
Failed to merge in the changes.
Patch failed at 0001 Resolves #586, Postback on deposit

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".



.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git rebase --abort
HEAD is now at b7b1f8a Resolves #586, Postback on deposit



답변

이것은 git 문제에 대한 다른 질문과 동일한 대답입니다.

나는 Mac을 사용하고 있는데,이 모호한 구성 변경은 아무것도 없었을 때 무단계 변경과 관련된 모든 문제를 해결하는 것처럼 보였습니다.

git config --global core.trustctime false

Windows 파일 시간, Linux 파일 시간 및 Mac 파일 시간의 차이와 관련이 있다고 생각합니다. 아는 사람이라면 자유롭게 의견을 말하십시오.

업데이트 : 이 블로그 게시물은 무슨 일이 일어나고 있는지 설명합니다.


답변

Joshua Hogendorn의 답변과 관련하여 : git로 저장소에서 작업하는 동안 Xcode를 열어두면 이러한 문제가 발생하는 것으로 보입니다. 그것은 심지어 git이 내가 숨겨 놓은 것으로 생각하고 나중에 가지고 있다고 생각한 것을 커밋했지만 Xcode가 rebase 중에 파일 시스템에 방금 썼던 상황으로 이어졌습니다.

따라서 안전을 원하면 git으로 저장소에서 작업하기 전에 Xcode 프로젝트를 닫으십시오. 그러면 core.trustctime false 설정이 필요하지 않을 것입니다.


답변