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

14 lines
459 B
Bash
Raw Normal View History

2023-04-02 01:46:29 +00:00
#!/bin/bash
2023-04-04 10:25:01 +00:00
contextRoot="$(mktemp -d)";
pushd "$contextRoot" > /dev/null;
2023-06-22 19:08:48 +00:00
git init;
git commit --allow-empty -m "Initial commit" > /dev/null;
2024-03-09 20:45:50 +00:00
git branch master || true > /dev/null 2>&1;
git branch main || true > /dev/null 2>&1;
git branch dev || true > /dev/null 2>&1;
2023-06-22 19:08:48 +00:00
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;
2023-04-04 10:25:01 +00:00
popd > /dev/null;
rm -rf "$contextRoot";