George Armstrong Custer was made a "brevet" Major General in 1865 during the Civil War. A brevet was a warrant giving an officer a higher rank title as a reward. What "actual" rank did he hold at the time of his death, 1886, at Little Big Horn?

George Armstrong Custer was made a "brevet" Major General in 1865 during the Civil War. A brevet was a warrant giving an officer a higher rank title as a reward.  What "actual" rank did he hold at the time of his death, 1886, at Little Big Horn?