Hi Wendy.
"He was hitting on her." This is correct, meaning he was trying to ask her for a date.
"He was trying to go after her." Although correct, seems a bit creepy. This sounds as if he means to do her harm.
" He was hitting it off her." This is only correct if there were something on her he was physically hitting. Such as: There was a giant spider on her shoulder and he was hitting it off her.
Other ways to say "He was hitting on her."
1) He was trying to pick her up.
2) He was trying to get with her.
3) He was trying to ask her out.
4) He was asking her out.
Hope this helped.