What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-19 11:03:07
git clean all submodules on branch switch
# Be careful it will delete all untracked files, reset all stagated files # and will remove all submodule folders git reset --hard git checkout gh-pages git clean -xffd # Optional restoration of submodules content git submodule update --init --recursive Add solution