mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
add switch to master script
This commit is contained in:
16
scripts/switch_to_master.sh
Executable file
16
scripts/switch_to_master.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
cd $DIR/..
|
||||
|
||||
git clean -xdf .
|
||||
git rm -r --cached .
|
||||
|
||||
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
||||
git fetch origin master
|
||||
git checkout master
|
||||
git reset --hard
|
||||
git submodule update --init
|
||||
|
||||
printf '\n\n'
|
||||
echo "master checked out. reboot to start building openpilot master"
|
||||
Reference in New Issue
Block a user