The Hungarian Revolution of 1956 is instructive.
For one thing, NEVER negotiate. Unconditional Surrender is the ONLY outcome outside of annihilation of the enemy. Hungary allowed itself to negotiate with the very Communists that then turned on them.