Как заставить «git pull» перезаписывать локальные файлы?

Как заставить перезаписать локальные файлы наgit pull?

Сценарий следующий:

A team member is modifying the templates for a website we are working on They are adding some images to the images directory (but forgets to add them under source control) They are sending the images by mail, later, to me I'm adding the images under the source control and pushing them to GitHub together with other changes They cannot pull updates from GitHub because Git doesn't want to overwrite their files.

Это ошибка, которую я получаю:

error: Untracked working tree file 'public/images/icon.gif' would be overwritten by merge

Как заставить Git перезаписать их? Этот человек дизайнер. Обычно я разрешаю все конфликты вручную, поэтому на сервере установлена самая последняя версия, которую им просто необходимо обновить на своем компьютере.

Ответы на вопрос(29)

Ваш ответ на вопрос