Move and modify .gitignore file to the root directory