There were black Confederate soldiers contrary to the belief of many noted scholars in academia. I don't believe that there were very many compared to the blacks who served in the Union Army. There are estimates of maybe three thousand that served as rebels as opposed to nearly 200,000 that served as Yankees. For scholars to poo poo the idea that blacks would serve the South shows the arrogance of the elite. In my mind they are just as wrong as those white Southerners who refuse to acknowledge that slavery was the underlining cause of the Civil War. They overestimate the numbers of blacks that served as rebels because in their mind slavery had nothing to do with the war. It was all about states rights or the tariff issue. These other issues influenced the causes of the war but if there had been no slaves there would have been no war. The evidence is overwhelming. It is on the same level of someone denying the holocaust in spite of the overwhelming evidence to the contrary. More to the point the war started because the South wanted to spread it to the territories and the North wanted to contain it to the South where it already existed. The question has to be asked why would a black man want to fight for the South? Although blacks were not allowed to enlist in the Southern army most of these soldiers were probably personal body servants. Most probably grew up with the white soldier they were assigned to serve and they played together as children. They probably served their masters out of a deep sense of loyalty and even affection.
These slaves had it better than the average slave. They were usually not field hands. Then there were slaves that served as teamsters and cooks. Nathan Bedford Forrest is said to have freed his teamsters for their service. Soldiers in any army have always been assigned to do menial tasks. They may not ever fire a gun in anger but they are still considered soldiers. I don't think it is known to what degree or if these soldiers ever served in a combat role. Even though they weren't allowed to enlist there is evidence that they were accepted as soldiers based on their loyalty and service. Although I haven't been able to confirm this story I once heard that there was a black Confederate Sergeant who served the artillery at Ft. Wagner fighting against the Union attack spearheaded by the all black 54th Massachusetts Infantry depicted in the movie Glory. Supposedly the Sergeant was accepted into the unit as an "honorary" white man. We know beyond a doubt that there was much resistance to black soldiers serving in the Confederate Army. General Joseph Johnston and Patrick Cleburne along with others suggested that slaves should be used as soldiers but their suggestion was met with disdain. I believe that this was a big reason that Cleburne never advanced above the level of Division command. This fact probably led to his death at Franklin. If he was a Corps commander he would not have been out front leading his troops in battle.. It wasn't until March 1865, one month before Lee's surrender, that blacks were allowed to enlist and then it was out of pure desperation. These troops never saw action. Were there black Confederate soldiers? Probably. There are just too many blacks wearing Confederate uniforms in pictures and at Confederate reunions after the war.Obviously they thought that they were soldiers.