Push dfferent variants to different remotes

55 views Asked by At

I have a repository with two remotes (or even better: one remote with two pushurls). One of these should receive the unaltered commits, as Git does regularly, but the other one should receive a slightly altered version.

For the purpose of this question, let us assume I want to run sed '/\s*#/d' over the files to remove all comments.

I do not have direct access to both remotes and thus can place no server side hooks. Is it possible to send out different variants to different remotes with Git?

0

There are 0 answers