If the defendant is committed to jail in default of bail, the committing magistrate or sheriff or the city court clerk of any incorporated municipality or city or the person's deputies may take bail at any time thereafter, for defendant's appearance at the court having cognizance of the offense.