Mosby became a Republican in Virginia, got shot at, and then became a consul in Hong Kong because that was a lot safer than being a Republican in Virginia!
I am curious though, why did Mosby become a Republican?
This is from Wikipedia:
Alerts
Mosby also told Grant he believed vehemently that election of
Horace Greeley (a long-time editor of the
New York Tribune detested in the South) would be worse for the South because the men surrounding him were worse than those surrounding his old benefactor Grant. A few days later, Massachusetts Congressman
Benjamin Butler presented an amnesty bill for former Confederates, as Mosby had suggested in that meeting, and soon President Grant signed it into law. After Greeley became the Democratic party's nominee in July, Mosby became Grant's campaign manager in Virginia, and an active
Republican, although he also made sure the Republicans would not run a candidate against his friend and fellow Warrenton attorney
Eppa Hunton, who campaigned and won as a Democrat.
[45] In his autobiography Grant stated, "Since the close of the war, I have come to know Colonel Mosby personally and somewhat intimately. He is a different man entirely from what I supposed. ... He is able and thoroughly honest and truthful."
[46]
Soon, Mosby had become one of Grant's favorites and was bringing federal patronage jobs to local Virginians, although initially he did not hold any federal job. He tried to make a rapprochement between President Grant and Virginia Governor
James Kemper, a Confederate Major General and Conservative elected the following year and whom Mosby also supported. However, that failed. His Republican political activity diminished Mosby's popularity in Warrenton; many considered him a turncoat. Many Southerners still considered Grant "the enemy". Mosby received death threats, his boyhood home was burned down, and at least one attempt was made to assassinate him. Later reflecting on the animosity shown to him by his fellow Virginians, Mosby stated in a May 1907 letter that "There was more vindictiveness shown to me by the Virginia people for my voting for Grant than the North showed to me for fighting four years against him."
[47]
en.wikipedia.org/wiki/John_S._Mosby
Hope that helps.