Simple automated GIT Deployment using GIT Hooks
git源码自动部署到服务器
Please ref the github gist.
Notes
- non-ssh standard port for server git ,use ssh://xx@ip:port/xx/xx.git
- I fail using the git remote add production demo@yourserver.com:project.git, change to use origin not production in local git config.
- 'git-remote-fatal-you-are-on-a-branch-yet-to-be-born" error lead me to reset all ,then use the origin .
- For some blog,we can use Zeit Now etc.
Enjoy!