PortValhalla/scripts/Common/Config/git/flow/install.sh

14 lines
459 B
Bash
Executable file

#!/bin/bash
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
git init;
git commit --allow-empty -m "Initial commit" > /dev/null;
git branch master || true > /dev/null 2>&1;
git branch main || true > /dev/null 2>&1;
git branch dev || true > /dev/null 2>&1;
yes "" | git flow init > /dev/null 2>&1;
git flow config set --global master main > /dev/null;
git flow config set --global develop dev > /dev/null;
popd > /dev/null;
rm -rf "$contextRoot";