Ignoring unwanted file and deleting it from history