On Thu, May 5, 2011 at 3:40 PM, Daniele Segato <daniele.bilug@xxxxxxxxx> wrote: > I noticed that when i put a file in the git ignore If i switch to a > branch where the file is present and versioned git delete my local > ignored file replacing it with the content of the branch I switched > this is done silently and the file is gone forever if I don't have a > copy somewhere This is on purpose. Commit f8a9d42 (read-tree: further loosen "working file will be lost" check. - 2006-12-04) allowed ignored files to be overwritten. Perhaps we can have a config to tighten the check again? -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html