Need pull to delete files.
From: Russell, Scott <hidden>
Date: 2021-08-24 14:07:20
Yesterday, when running get pull, I got the message.
Stopping, untracked file in the working tree would be overwritten by the merge. Please delete fileX before continuing merge.
As part of our regular process, we are continually deleting files.
We will have:
File1
File2.
Then we will add
File3
And delete File1.
We do not want to get a message saying untracked file ... If the file is untracked, then why is git checking it?
During pull ( for build ) we need the pull to delete the deleted file. Using -ff did not work.
On our build machine, the remote ( github ) is the master. Local working tree is expendable. We want to always pull and merge the remote regardless.
Thanks,
Scott Russell
Staff SW Engineer
NCR Corporation
Phone: +17706237512
Scott.Russell2@ncr.com | ncr.com