Using git with Wordpress and multiple people: access all files locally but only edit a subset? -


git n00b here. boss , developing wordpress workflow git. we'd have copy of files on our local machines, 95% of time want edit theme folder. our efforts far haven't yielded working solution yet. here's i've tried:

i set repository include wordpress files, latest core files server. discovered files on server getting overwritten local copies if didn't edit them (eg wordpress update on server , next time push local, old files overwrite newer ones on server)

so used git ignore drill way down theme folder. git still tracking them, used rm stop tracking. git deleted other files.

how people here use git multiple people update wordpress? perspectives appreciated - thanks!

you should keep files in git repository, should avoid doing modifications directlry on server.

your wordpress update should done on of local checkout of repository , pushed on server via git.

another possibility commit / push update changes once have been done on server, prefer working locally , deploying update.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -