This explains how to do the merges:

https://github.com/sympy/sympy/wiki/Development-workflow#wiki-create-separated-branch