How to keep track of slightly differing codebases in a single git repository -


we run multiple webshops multiple languages, , want version them git. differ slighly - lines of css, different php file, additional image. alltogether 98% same among languages, single repository great. how can achieve this?

here ideas:

  • in css, body tag gets class "lang-en" or "lang-fr", selectors can language specific.
  • for language files, .gitignore on target system can great job.
  • for configuration, main , .gitignored file can contain language.

but how slight changes in 3rd-party-php-code? there way tell git part of file check out? like

aaaaa ---git checkout if lang=en--- bbb ---git endif--- ccc 

sorry incorrect naming, buti don´t know how call want.

regards

edit: idea: language-neutral version main repository, , differences git submodules. work?


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -