There is a very instructive article by Étienne Charavay: Les grades militaires sous la révolution.
Unfortunatey it doesn't cover the period of the Consulat and Empire.
As a European, you need a US based proxy server to access this article. I currently use: https://us.hidester.com