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 [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 .
  • For some blog,we can use Zeit Now etc.

Enjoy!

Webmentions

Loading...

When you post a tweet with a link to this post it will automatically show up here! (refreshed every 30 minutes) 💯

A small favor

Was anything I wrote confusing, outdated, or incorrect? Please let me know! Just write a few words below and I'll be sure to amend this post with your suggestions.

Follow along

If you want to know about new posts, add your email below. Alternatively, you can subscribe with RSS.

More from 格物治用

实践、探索、思考.

View all posts