1
How to ignore a subfolder with gitignore? in my case only the sub-folder /vendor
My structure
/
/Systema/vendor
my git is on the project root my gitignore too
!systema/
systema/vendor/*
I tried this procedure but git ignores my Systema folder.
1
How to ignore a subfolder with gitignore? in my case only the sub-folder /vendor
My structure
/
/Systema/vendor
my git is on the project root my gitignore too
!systema/
systema/vendor/*
I tried this procedure but git ignores my Systema folder.
2
Create a .gitignore inside the directory /Systema/ and put the code down:
[^.]*
So you will be ignoring all files and subfolders;
To ignore only the folder /Systema/vendor/ add the code below;
/systema/vendor/
or
Create .gitignore inside the directory /Systema/vendor/ add the code below:
[^.*]
i edited the question, I just want to remove the sub folder /vendor inside the Systema folder.
Create a . gitignore inside the /Systema/vendor directory, and enter ’s passcode [ . ]* Which will solve
Browser other questions tagged git
You are not signed in. Login or sign up in order to post.
Possible duplicate of Configure . gitignore to not upload certain files
– Jefferson Quesado