As long as you didn't egg the threads, it should spin off. If you can't get it removed, cut the hose and put a repair end on, or take it to a hydraulic line shop and have them swage another on it.
You'll have some oil in there, but it shouldn't be under pressure if you bled it down before removing it.