Here is a great video tutorial that teaches the fundamental basics of using github with PHP Storm.
I found this video tutorial from Jream very usefull. It was a great brush up on learning how to use Bitbucket and Source tree.