podfile point to branch code example
Example: pod reference github
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'master'
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'master'