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
|
||||
|
||||
if ! git ls-remote --exit-code --heads origin pages; then
|
||||
git checkout --orphan pages
|
||||
git checkout --orphan -f pages
|
||||
git rm -rf .
|
||||
else
|
||||
git checkout pages
|
||||
git checkout -f pages
|
||||
fi
|
||||
|
||||
if ! [ -d "$1" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user