I have a git repo that requires a number of atypical settings. I'd like to set it up so that when people clone my repo and work with branches they don't have to follow a list of steps. But I also don't want to get in the way of dealing with other repos they work with, possibly even in the same project.
I want
git config remote.<remote>.push HEAD:/refs/for/something
git config branch.<branch>.merge refs/head/something
(where branch's remote is<remote>
)
Is there some way to configure this so that just by cloning the repo everything is set up properly?