tags:

views:

61

answers:

1

Is it possible to ignore deleted files in git? git update-index --assume-unchanged allows me to ignore modifications, but it still tracks deletions.

(This is similar, but I couldn't find where "John Doe" restated his question: http://stackoverflow.com/questions/655243/ignore-modified-but-not-committed-files-in-git)

A: 

Rather than trying to ignore the "delete" status, I would:

  • not remove the directory and those files in it
  • split the Git repo in two, effectively detaching the subdirectory to be removed into a separate Git repository.
  • go on with the main Git repo.

Note: that may not be compatible with a Git repo currently synchronized with a SVN one.

VonC
Yeah, my repo is sync'd with a perforce dir.
turdfurguson