mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 06:32:08 +08:00
op: also fix resetting
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ function op_switch() {
|
||||
|
||||
git fetch "$REMOTE" "$BRANCH"
|
||||
git checkout -f --recurse-submodules "$BRANCH"
|
||||
git reset --hard "$BRANCH"
|
||||
git reset --hard "${REMOTE}/${BRANCH}"
|
||||
git clean -df
|
||||
git submodule update --init --recursive
|
||||
git submodule foreach git reset --hard
|
||||
|
||||
Reference in New Issue
Block a user