Lack of fuel and apprehension about the threat to Gabès, led to the retreat passing beyond the Tarhuna–Homs line and Tripoli was occupied by the British on 23 January, the Axis retreat from El Alamein having covered 1400 miles .