I remember some years ago when the Russian military refused to fire upon civilians. If they can find that kind of backbone in that police state, I'd expect our military to overwhelmingly do so also.
The 1991 coup that brought Yeltsin to power. Mao said " All political power comes from the barrel of a gun" This proved that sometimes the power comes from the guns NOT firing.
I agree with the person who pointed out the influence of County Sheriffs, and we seem to be blessed with some really good ones around the country. However, their influence will be limited to a localized area and lower level organization, companies, and Battalions. Mid level military officers will influence the choices of the 20 something kids forming the Army ranks, the enlisted ranks, with the exception of a very few will stick with their friends and familiar organization regardless of issues . However, don't write off the Generals and Admirals. Obama has relieved a bunch of them and screwed several others like Pasteur. Something to think about is that none of them are publicly raising a stink the way MacArthur, and so many others have in the past. If they aren't talking publicly, you can bet the farm they are talking privately. They are a source of credibility, leadership, and administrative experience .
I don't completely agree with what Vince Warden posted about State troops, it will probably work out that way in unified states like Arizona, Texas, New York, and California, (2 for each faction) but in most cases it will be more like "Bleeding Kansas" . It will not break down as state versus state, but more like producing rural areas versus consuming cities, primarily white tax payers versus primarily non white tax consumers. This is where Sheriffs will play their biggest part, getting control of their counties for one side or the other.
The person who posted that it is not covered in the Constitution isn't right. The oath of office, specified in the Constitution includes the words " threats foreign and DOMESTIC" for a reason. The founders didn't want an excessively long document, and they did not want to jinx their experiment, but they DID include provision for an armed remedy.
My train of thought has derailed so I'll end now and wait for the replies.
(I'm passed because I typed for 30 minutes and then hit a wrong button and lost it all

)