In our team we had two repositories till now. One was Development and other was Production.
So we configured the gitconfig global file as default fetch from Production and default push to Development.
Now we have introduced a third repository named Common. Whoever clones from 'Common' should have default push configured as 'Common'. Since we have configured 'Development' as default push repository in global, the default push is pointing to 'Development' even inside 'Common' repository when it is cloned.
How can i make something like below in gitconfig global?
if (cloned repository from Production)
then
default push is Development
if (cloned repository from Common)
then
default push is Common