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

13 lines
312 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;
git init;
2023-04-04 12:04:46 +00:00
git commit --allow-empty -m "Initial commit";
2023-04-04 10:25:01 +00:00
git branch main;
git branch dev;
yes "" | git flow init;
git flow config set --global master main;
git flow config set --global develop dev;
popd > /dev/null;
rm -rf "$contextRoot";