On May 24, 1864, Sheridan's force returned to the Army of the Potomac and just before the Battle of Cold Harbor, May 26–June 3, 1864, Torbert returned to command of the division, Merritt to command of the Reserve Brigade and Gibbs to command of the 19th New York Volunteer Cavalry Regiment. They engaged in bloody preliminary battles at the Battle of Haw's Shop and the Battle of Old Church or the Battle of Matadequin Creek. Then, they took Confederate positions at Cold Harbor, held them against a counterattack and turned them over to the infantry on June 1, 1964.