Github自动同步
Github automatic sync
我想在 VPS 服务器上设置一个网络服务器,我认为 Github 是一个很好的版本控制方式,并且可以从不同的位置进行访问。
有没有办法让 git 命令行客户端自动同步,这样当我在存储库中提交时,它会在服务器上更新(最好是立即更新)?
编辑: 我正在尝试让远程服务器在更新时自动提取 GitHub 存储库的更改。
so when I make a commit in the repository, it will update on the server
您的服务器可以监听的是调用webhook, which act as a post-update hook on GitHub side, and generates a JSON payload。
页面“Delivering deployments”说明了几种部署技术:
The Deployments API provides your projects hosted on GitHub with the capability to launch them on a server that you own.
Combined with the Status API, you’ll be able to coordinate your deployments the moment your code lands on master
.
我想在 VPS 服务器上设置一个网络服务器,我认为 Github 是一个很好的版本控制方式,并且可以从不同的位置进行访问。
有没有办法让 git 命令行客户端自动同步,这样当我在存储库中提交时,它会在服务器上更新(最好是立即更新)?
编辑: 我正在尝试让远程服务器在更新时自动提取 GitHub 存储库的更改。
so when I make a commit in the repository, it will update on the server
您的服务器可以监听的是调用webhook, which act as a post-update hook on GitHub side, and generates a JSON payload。
页面“Delivering deployments”说明了几种部署技术:
The Deployments API provides your projects hosted on GitHub with the capability to launch them on a server that you own.
Combined with the Status API, you’ll be able to coordinate your deployments the moment your code lands onmaster
.