How does git submit the specified folder? (this folder is already ignore)

node_modules this folder has been ignore by me

but there is an elementUI folder under node_modules, and I have modified the files in it

so the effect I want:

only upload the elementUI, under node_modules and do not upload the rest. How can I do this?

I tried git add node_modules/elementUI, but it didn"t work.

Mar.14,2021

try this
.gitignore:

/ node_modules
! / node_modules/elementUI


package into your own package, release, and then install your own package

Menu