1. Install this tutorial and practice
http://ftqq.com/2014/04/using-git-as-web-publish-tools/
2.
3. Display permission denied
为情所困2017-05-02 09:35:44
If you use SSH authentication, then add your public key to the server.
If you use https authentication, then verify whether your username and password are correct
PHP中文网2017-05-02 09:35:44
You need to add your public key to the server. The public key is equivalent to an identity. The server will only allow you to perform push operations after recognizing your identity
PHPz2017-05-02 09:35:44
You need to add the SSH key in your github account settings--SSH and GPG keys.
phpcn_u15822017-05-02 09:35:44
Now generate an ssh public key on github and add it
Hope it helps you