version control - Git and media directory commits -


i've started using envoyer bitbucket , 1 problem have live project media directory users of system upload different media. if exclude commits, removed live project on deployment - if keep them - overwrite existing ones. approach sort of situation, want commit them first time , ignore on each sub-sequent deployment?

you can add .gitignore media directory:

# ignore in directory * # except file !.gitignore 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -