I have my development environment in Cloud9 and I push to Heroku using git.
I'd like to have some folders inside Heroku environment not deleted by the deploy command.
So I've added these lines in my .gitignore
file
folder/to-ignore1
folder/to-ignore2
... and so on
Then I can create content in these folders in heroku, no problem so far.
But when I try to sync my dev files again, git seems to delete these folders and its contents.
I have tryied every single variations, like
/folder/to-ignore1/
folder/to-ignore1/
/folder/to-ignore1
folder/to-ignore1
/folder/to-ignore1/*
folder/to-ignore1/*
But nothing seems to work. Every deploy I lose those files.
Obs.: I have executed the
git rm -r --cached 'files/folders'
commands as well.