Git remove files on server that not in repository -
in git source have folder script save uploaded files. repo placed on production server. on push git remove files in folder, because not in repository. how can fix it?
in repository there upload
folder, contains 1 hidden file. in production php
script place in folder files uploaded users. when git push
after modifications in source, git clean folder in production.
i solve problem saving files outside repository (as asmeurer) , create symlink upload
instead of folder in repository. use different symlinks in local , remote repository add upload
.gitignore
, git update-index --assume-unchanged
file.
Comments
Post a Comment