Mémo pour un git reset hard total, y compris les submodules !
1 2 3 4 5 6 |
git reset --hard git submodule foreach --recursive 'git reset HEAD . || :' git submodule foreach --recursive 'git checkout -- . || :' git submodule update --init --recursive git clean -d -f -f -x git submodule foreach --recursive git clean -d -f -f -x |
Source : https://gist.github.com/nicktoumpelis/11214362#gistcomment-3080708