add precommit for project
refact pre-commit for tip_check_conflict.png