I have encountered this problem recently and I have never been able to find a coherent explanation or solution.
When attempting to push a specific branch to gith