add a force flag to checkout command
This commit is contained in:
parent
0e69e0472e
commit
b0cde2fe52
4
run.sh
4
run.sh
@ -23,10 +23,10 @@ git config --global --add --bool push.autoSetupRemote true
|
|||||||
git fetch
|
git fetch
|
||||||
|
|
||||||
if ! git ls-remote --exit-code --heads origin pages; then
|
if ! git ls-remote --exit-code --heads origin pages; then
|
||||||
git checkout --orphan pages
|
git checkout --orphan -f pages
|
||||||
git rm -rf .
|
git rm -rf .
|
||||||
else
|
else
|
||||||
git checkout pages
|
git checkout -f pages
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -d "$1" ]; then
|
if ! [ -d "$1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user