commiting files and commit hook