【发布时间】:2016-03-07 17:05:42
【问题描述】:
我在 git 上有一个名为 uat 的分支。
我想在uat 分支中获取在merge 中更新的所有文件的克隆。
(其背后的基本想法是创建一个构建以上传到 uat 服务器)。
我试过这样做。
#!/bin/bash
branch=$(git symbolic-ref HEAD | sed -e "s/^refs\/heads\///");
if [ "uat" == "$branch" ]; then
// to do
// 1. get all updated files
// 2. create a clone of these files
fi
有人可以帮助我setp 1,即在当前合并中更新所有文件。
【问题讨论】:
标签: git deployment githooks autodeploy