Simple automated GIT Deployment using GIT Hooks
Written by inevity
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 [email protected]: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 .
Enjoy!