As a little addon: You can even operate an HQ and then attach units to it. After operating just switch its command mode to "reset" it (the command mode can be switched back and forth as many times as you want, so you can e.g. go semi automatic->manual->semi automatic)
If the HQ does not have spare capacity, you can also disconnect units at its old location, provided those units have not done anything yet.