Get default remote push and default remote branch
问题 From a script, I would like to get the default push remote and the default push branch. For the recall, git will choose the remote between these settings, in this order: branch.<name>.pushRemote remote.pushDefault branch.<name>.remote very last default origin if config push.default current NULL if config push.default upstream I can't find any reference how git is choosing this last default origin, but it seems static. Default remote branch can be: branch.<name>.merge if config push.default