Complex sentence: While there, he enlisted as a brigade commissary under Confederate General Humphrey Marshall and was given the rank of major.
Split into simpler sentences: While there, he enlisted as a brigade commissary in the Confederate army. He was made brigade commissary for General Humphrey Marshall with the rank of major.