How to I remove file from git repository but NOT have it removed from post_receive target? -


i'm new git thing. i'm using (yeah right) maintain own website files between local pc , remote webserver.

there files, such settings , .htaccess files, want on server left alone after push. now... of them thought ahead , put .gitignore file @ start of , fine. others i've discovered since... add them .gitignore , still clobbered on push! ignored on local side sure. think happening files not getting transfered remove repo, copy in remote repo getting post_received processed on destination , poof.

so tried "remove" once pushed, removed file final destination too! not @ want!

so how can a) ignore file on destination end , b) remove remote repo , c) still have local copy untouched?

gitignore correct way it. should fine if restore/generate files again on destination computer. remove made git delete files.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -