when you have seen the girl of your dreams and know that you are never going to get her, so all you can do is "pleasure" youself over the thought of her.
therby "jerking her out" of your system.
trev: oh man that girl is so hot, i think i love her
pete: shut up man, just go back to your apartment and jerk it out.