Here's an interesting read on the subject:
The Journal of Negro History
Vol. IV - July, 1910 - No. 3
The Employment of Negroes as Soldiers in the Confederate Army  https://www.jstor.org/stable/2713776?seq=1#metadata_info_tab_contents