nwi*_*ler 10
您可以在不通过UI的情况下合并更改 - 这是Git的核心功能之一.假设您有两个分支(development和production),以下是合并更改的方式:
# Check out development branch
git checkout development
# Make changes, commit...
...
# Optional: Push development changes to the remote
git push origin development
# Check out production branch
git checkout production
# Merge the changes from the development branch
git merge development
# Push the changes to the remote
git push origin production
# Check out the development branch again
git checkout development
Run Code Online (Sandbox Code Playgroud)
现在登录到生产服务器并在那里提取更改.
您当然可以将上述签出/合并/推送步骤放入脚本中 - 这很常见.
有些方法可以在出现变化时自动提取更改.以下是一些链接: