WASHINGTON — A Federal District Court judge on Friday ordered the military to stop force-feeding a hunger-striking detainee at Guantánamo Bay, Cuba, until at least Wednesday.

In a three-page order, the first of its kind, Judge Gladys Kessler of the Federal District Court for the District of Columbia also ordered the military not to destroy videotapes showing previous force-feeding of the detainee, Jihad Ahmed Mujstafa Diyab, a Syrian. The judge said the government should be prepared to say when it can turn over Mr. Diyab’s medical records and the videotapes at a hearing on Wednesday.

Judge Kessler’s order contained little commentary. But last year, in an earlier phase of the case, she made an unusual entreaty to President Obama to address issues raised by a major hunger strike at the prison.

In that ruling, she said it was “perfectly clear” that “force-feeding is a painful, humiliating and degrading process.” The procedure involves strapping a detainee into a chair, inserting a gastric tube through the nose and down the throat, and pouring a liquid nutritional supplement into the stomach.