Git manage one project on different remotes with differences -


i have project runs on 5 different hosts because each customer has it's own. logic of application same each applicaion, css differs bit depending on customers brand colors , stuff that.

now manually manage upload of right css file right remote host. there way setup settings can set specific files specific git remote?

so want achieve can this

git push remote companyx git push remote companyy 

and git or knows files push specific remote.

i don't think should handle git. manage different css different host, can add code in application define environment (x or y) , base css choose on that. like

if env == companyx     stylesheet = x.css; else      stylesheet = y.css`. 

otherwise, can use different branches (one per host) , use complex git-hooks, or use more complex system git submodule, not recommend :)


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -