branch: add more upstream configuration management Add functions to set and unset the upstream configuration to complement the getter we already have.