adds hook and  gitignore items.