My phone samsung galaxy gt-s6102
while rooting i bymistakely press the volume down button instead of up so now its stuck between odin mode
It flashes this:
PRODUCT NAME: GT-S6102
CUSTOM BIN DOWN0 counts)
CURRENT BIN:SAMSUNG OFFICIAL
Power it down then press the Volume Up button and the Power On button at the same time for a few second, then let go and see if you get the option to have a factory reset. If you see it in the list, press the Volume Down button to skip down the menu to your choice then at the next screen, press the same button seven times. It's the systems way of making sure you really want to do it.
After all that, if you still want to root, go through the whole process again only being careful not to get it wrong.