git-hacks

git-hacks Commit Details

Date:2017-12-30 14:49:59 (1 year 6 months ago)
Author:Nicola Fontana
Branch:master
Commit:368f2550df23cee1cb68f2d5db11962dec88493e
Parents: ae2ce33daebc82e9bc7b25daecc5dca6d41c376a
Message:gitdeploy: optionally specify a custom branch in remote2public

Changes:
Mgitdeploy (1 diff)

File differences

gitdeploy
4040
4141
4242
43
44
45
4346
44
47
4548
4649
4750
remote2public() {
local branch="$1"
[ -z "$branch" ] && branch=master
echo -n "Syncing public with remote... "
git checkout -qf
git checkout -qf $branch
echo done
if [ ! -r "$webdir/bootstrap.cfg" ]; then return 0; fi

Archive Download the corresponding diff file

Branches