Skip to content

Instantly share code, notes, and snippets.

View jeferwang's full-sized avatar
😍

jeferwang jeferwang

😍
View GitHub Profile
@jeferwang
jeferwang / repo-rinse.sh
Last active June 11, 2022 07:08 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
git reset --hard
git submodule sync --recursive
git submodule update --init --force --recursive