Git Versioning: ignore vendor & dist
-
tl;dr
Would it be safe to exclude these directories from tracking with Git?
**/vendor/
**/assets/dist/
**/node_modules/
Detailing:
Similarly to this WF Question:
I’d like to Git ignore all/vendor/
directories on my WP website; so I’m thinking of adding**/vendor/
to .gitignore. (…) Would it be safe to ignore it?I want to skim the fat off the repository for my WordPress website so I am considering ignoring some obvious directories from Git tracking. I can see the following directories currently in my website:
/wp-content/plugins/jetpack-boost/vendor/
/wp-content/plugins/jetpack/vendor/
/wp-content/plugins/jetpack-boost/app/assets/dist/
My main worry is whether there would be any issues if I were to change host (i.e. move my website by git cloning on another server)?
For extra context, I’m running my website in a Docker container (with
docker compose
) and I’m also wondering if ignoring all/vendor/
and/assets/dist/
directories would cause any issues should I rebuild the container from scratch?
- You must be logged in to reply to this topic.