The routes are /storage/app/public/employees
and /storage/app/public/projects
, en /storage/app/public
I have the file .gitignore.
How can I do to ignore everything except those two folders?
The routes are /storage/app/public/employees
and /storage/app/public/projects
, en /storage/app/public
I have the file .gitignore.
How can I do to ignore everything except those two folders?
To omit everything except those specific files, you can use the !
symbol:
# Ignorar todo
*
# Pero incluir
!employees/*
!projects/*
An optional prefix "! " which negates the pattern; any matching file excluded by a previous pattern will become included again.
An optional prefix "! " that denies the pattern. Any file coincident previously excluded by another pattern will again be included again.