My 2nd great grandfather Samuel Zimmerly was a member of the "California Column", which were a group of Union regiments that came to New Mexico during the Civil War. On this site he is listed as a member of Company B of the California 1st Regiment of the Infantry. According to this document, he was a corporal who enrolled at Camp Latham, California on October 13, 1861. He mustered out at Santa Fe, New Mexico on November 3, 1864 after completing his term of service.
Here you may find a short history of his regiment.
All of this information may be found in the book "Records of California Men in the War of the Rebellion, 1861 to 1867" by Brig.-Gen. Richard H. Orton which was published in 1890. A complete transcription of the book is on the web at the California Civil War Rosters Transcription Project.