I have a git repo with a foo/ directory committed. I had ignored the foo/ directory again after committing, but recently un-ignored it (removing the entry from the gitignore file at site 1, committing the contents). I just tried to pull this change down at site 2 but I’m being told:
error: The following untracked working tree files would be overwritten by the merge:
And then a list of files in foo/. I’m guessing these files were made in foo after gitignoring. I’ve tried resetting the folder state but that isn’t working – is this because reset won’t un-create files? Have I got myself tangled here or is there an easy way to get myself fetch/merging again at site 2?
If the current ignored files in
foo/are not important, you can justrm -rf foo/and thengit pull.