I got the answer finally, I could get the plugin code upto particular commit:
The following command is what I used to get the latest plugin code:
D:sampleproject/>
cordova plugin add https://github.com/phonegap-build/PushPlugin#2345fd8fe48572eae3df631cf8fb262ef2804779