meaning of "to gallop toward the enemy ... but trot away"

[color=red]know that I will tell my men always to gallop toward the enemy…but trot away
This came within a western movie.It is just not clear what the man wanted to tell the commander.
thanks in advance

If a horse is galloping, it’s moving or running much faster than a horse that’s trotting. A gallop is a fast run, a trot is a slower, more casual pace.

So the idea is to run as fast as possible towards the enemy, then once they’ve been defeated, take your time in leaving.

Also, it’s saying you should run towards the enemy, but never run away from them. In other words, be brave and hurry to fight, but never run away from an enemy in fear or defeat.

Thank You Skrej.You were very helpful.