code-server/ci/build/clean.sh

13 lines
216 B
Bash
Raw Normal View History

2020-02-15 07:54:52 +08:00
#!/usr/bin/env bash
set -euo pipefail
main() {
cd "$(dirname "${0}")/../.."
2020-02-26 10:30:58 +08:00
git clean -Xffd
2020-02-15 07:54:52 +08:00
git submodule foreach --recursive git clean -xffd
git submodule foreach --recursive git reset --hard
}
main "$@"