Creating a .gitignore file and adding all the packages directories to it.