after gettysburg, devin continued to command a brigade and sometimes a division in the cavalry corps of the army of the potomac. in the spring of 1864, he participated in the raid on richmond by judson kilpatrick's cavalry. in august he accompanied the cavalry corps to the shenandoah valley, where they fought under maj. gen. philip sheridan during the valley campaigns of 1864. devin was wounded once during the war, a wound in the foot on august 16, 1864, at the fighting at guard hill, virginia or crooked run, virginia. when wesley merritt became the cavalry corps commander, devin inherited command of his division. on november 19, 1864, president abraham lincoln appointed devin brigadier general of volunteers for his part in the battle of cedar creek, to rank from october 19, 1864. the president submitted the nomination on december 12, 1864, and the u.s. senate confirmed it on february 14, 1865.