Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove all .gitignore files of my folder

Is there a way for finding and deleting all .gitignore files ?

I must delete them before upload my project folder.

like image 261
Robinson Villegas Avatar asked Dec 20 '22 09:12

Robinson Villegas


2 Answers

on linux / mac os execute the folling command in your terminal:

find . -type f -name .gitignore -exec rm {} \;

this finds all files of type file with the name .gitignore and deletes them.

like image 134
Erik Schmiegelow Avatar answered Jan 02 '23 00:01

Erik Schmiegelow


Also you can do it with standard git methods, see git clean man and -X option.

like image 22
0xAX Avatar answered Jan 01 '23 22:01

0xAX