simultaneous rm and gitignore of test file