Military state taxes

What do you do for state taxes when your husband is stationed in a different state? How do you know which state is registered as your home state?