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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -