Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git hook post-checkout
#!/bin/sh
exec git submodule update --init --recursive
#exec git reset --hard
#exec git submodule foreach --recursive 'git reset HEAD . || :'
#exec git submodule foreach --recursive 'git checkout -- . || :'
#exec git submodule update --init --recursive
#exec git clean -d -f -f -x
#exec git submodule foreach --recursive git clean -d -f -f -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment