How to use gitignore, git hooks for better code management..!!