Hold the line from a military perspective:
The line is a reference to a designated position that separates us from the enemy. Normally they are invisible but not always
To hold said line is basically saying don't go anywhere. Do not advance. DO NOT RETREAT. Do not even look back. Keep your eyes and attention on the enemy. Maintain this until you get future instructions