some rules required when commiting in working directory.