Some hinges have a lock at the bottom. Use the flathead and hammer to tap out the bottom pin lock and then remove the pin as shown in the next step. You can select to do this on any hinge.
Use the flathead and hammer to tap the bottom of the pin upwards. You can continue to do it this way or place the flathead under the top of the pin. Gently tap until removed.
With the pin on a sturdy surface, lightly hammer the middle of the pin to cause it to slightly bend. (File used to show how much the pin is bent, which isn't a lot).
Now reinsert your pin into the hinge. You shouldn't have too much resistance, but if so you may have bent it too much. Add the lower hinge lock, if you had one, after the pin is fully seated.
Enjoy your door staying open at any angle and not closing on you! If it still moves, you can bend another pin as well, but 99% of the time the first one is all that's needed.