github - how to avoid a files get override on server using git? -


i have followed following mentioned link & failed
ignore files have been committed git repository

here situation: have download script on server a, download files & kept public/downloads/-files- folder. when run git push overwrites local files server.

ex: file status on localhost (only 1 file present in git repo download folder)

localhost /downloads/sample.txt 

file status on server after download script run on server a

server /downloads/a.swf server /downloads/b.swf server /downloads/c.swf 

after git push run file status on server a

server /downloads/sample.txt 

what need don't want folder files overwrite sample.txt.

ignore files have been committed git repository

as ref. above link tried following things

i implemented gitignore option after removing or uncaching index, remove /downloads/ dir server

also tried

git update-index --assume-unchanged <file> 

but not helped

let me know, if doing wrong or how achieve expected result.

thanks in advanced.


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 -