Complex sentence: Company B was commanded by Captain George Ousley and was initially ordered to Fort Gaston, and spent time at that fort and at Camp Anderson and Camp Curtis to June 1865.
Split into simpler sentences: Company B was commanded by Captain George Ousley and was intitial ordered to Fort Gaston. Duty there and at Camp Anderson and Camp Curtis until June 1865.