简体   繁体   中英

Pushing git repo files to server

I'm currently using BitBucket.org as an online collaborative Git repository for my projects. I also have a server with Git and SSH running Centos 5.9. On my Bitbucket repos, I have a "master" (production) branch, and a "development" branch.

I want to set it to to where when I merge changes into my "master" branch, these files get sent to my Centos server, and the changes are then made live on the website.

I've found these two pages online, but I'm not 100% sure if it's what I'm looking for:

Any ideas? Thanks!

You should look into setting up a post-receive hook in bitbucket...

This tutorial seems to cover most of what you will need: http://brandonsummers.name/blog/2012/02/10/using-bitbucket-for-automated-deployments/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM