TJ, that's a great story. It ended okay and you're right, you were lucky that you didn't get pinned. I hadn't thought about using the manure fork to "grow" or to push, great tip. The other thing I've done is tie a rope to the gate and keep hold of the rope. If you're close to the fence, you can hold the rope and it kind of blocks the opening as a rope fence between the end of the gate and the latch. If your horse respects the rope, you can contain them that way. Plus, it's always available to swing the end at them to get them to move back, if you aren't agile with the rake as a pusher. I have a wonderful trail mare who is a finished horse and I've been working with her for 3-4 years. Just to show you this happens a lot, she pulled the same stunt on my hubby this spring, and once last year did it to me. I realized she needed a ground lesson or two and and we worked on what I think Clinton Anderson or Parelli call "sending" in the narrow alley between me and the fence, or the barn, or the horse trailer. Interestingly, she didn't know what I wanted at all (a hole in her training) but once she figured it out, she has been a lot better, much more alert at where I'm moving toward and gets out of my 'bubble'. Even better, it seems to have helped her with trailer loading. It worked for me to teach her easily how to load herself in 4 tries after the 'sending' lessons.
All good, sounds like you're doing great!