v2.5.23
version=v2.5.23;
src_repo="[email protected]:ezsystems/ezplatform-ee"
dest_repo="[email protected]:adriendupuis/ezplatform-ee-docker.git"
dest_branch="release/$version";
push_options="--tags";
tmp_dir=~/ezplatform-ee-tmp;
git clone $src_repo --single-branch --branch $version $tmp_dir;
cd $tmp_dir;
git remote add destination $dest_repo;
git checkout -b $dest_branch;
git push --set-upstream destination $dest_branch $push_options;
cd -;
rm -rf $tmp_dir;