Generate a gitignore file intelligently based off of the directory contents.