I have a girlfriend . We've been together for almost 2 years However sadly, we don't get well along with each other during the past few months. Sometimes she is so hot-tempered. I am trying to tolerate. I really don't have any idea what to do.

I am not trying to discourage you, but I think your relation with your girlfriend is going south and you may have to call it quits.
If her questionable attitude is a one-off or a once-in-a-way thing, then it is understandable as temporary bad mood or something like that. But in her case it seems to have become a pattern, so be prepared...

Just because you've wasted 2 years with her, you don't have to commit the next 60 or 80 years to a living hell with her. Drop her like a hot potato. Then quit dating until you finish reading this book.
_____________________
What is the use of living, if it be not to strive for noble causes and to make this muddled world a better place for those who will live in it after we are gone?
-Sir Winston Churchill