Я попытался перебазировать, удалить commit_id, а затем автоматически объединить CONFLICT, git add не может помочь. в области сцены есть три омонимичных (одноименных) файла CONFLICT, когда я «git add», как я могу убедиться, что добавил правильный объект?
SayHi:monopolee Mylife$ git log --oneline
a7770c0 (HEAD -> reset) 20220325
d38da28 20220324
e3767f4 20220323
ace1b6d 20220322
SayHi:monopolee Mylife$ git rebase -i e3767f4
drop d38da28 20220324
pick a7770c0 20220325
warning: Cannot merge binary files: monopolee.xlsx (HEAD vs. a7770c0 (20220325 ))
Auto-merging monopolee.xlsx
CONFLICT (content): Merge conflict in monopolee.xlsx
error: could not apply a7770c0... 20220325
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply a7770c0... 20220325
SayHi:monopolee Mylife$ git add.
SayHi:monopolee Mylife$ git rebase --continue
Successfully rebased and updated refs/heads/reset.
SayHi:monopolee Mylife$ git log --oneline
e3767f4 (HEAD -> reset) 20220323
ace1b6d 20220322
42b40d2 20220321
9b4c613 20220320
SayHi:monopolee Mylife$ git ls-files -s
100644 9693a58c34f039f50e38b097580f77eda2cd9108 0.gitignore
100644 71e9ad6eaaa3060b57e5d3677c6307f9f5bdc31d 1 monopolee.xlsx
100644 89b6f64ab35a94583e294437a1d82ccc5b35153c 2 monopolee.xlsx
100644 2914685a30cd1ea15836e3d106c44a03ae0408be 3 monopolee.xlsx
Решение проблемы
【Проблема устранена】 Спасибо!
скопировать stage.theirs в рабочую область, а не нашу
git checkout --theirs monopolee.xlsx
git show также может решить проблемы
git show 2914685a30cd1ea15836e3d106c44a03ae0408be > monopolee.xlsx
Комментариев нет:
Отправить комментарий