Any ways to upgrade from jailbroken ios5 to jailbroken ios7 or 6?

I have an iPhone 4s that's on ios5 and jailbroken with the carrier T-mobile. How can I upgrade to ios6 or ios7 with it jailbroken and working with T-mobile? I'm trying to do this because I can't get a lot of apps due to my phone being on ios5. Please tell me a way to do it easily!

If you try to update the software it will go up to IOS7 as that is the latest version. There's no jailbreak for IOS7 or the later versions of IOS6.

If you try to update to IOS7 it will put your phone into DFU mode which will force you to restore and wipe it due to the jailbreak.

My recommendation would be to get all the photos and other vital stuff onto a computer and then run recovery mode on a computer. If you jailbroke the phone to unlock it this will undue the unlocking since it was orchestrated by the carrier.