That’s an obvious thing that a surprisingly ammount of people don’t know about. You can cancel an attack and restart the combo, by double tapping the weapon hotkey, un-equipping and re-equipping the weapon instantly.
This is useful when you need to dodge or avoid hitting a friend.