Skip to content

Instantly share code, notes, and snippets.

@eugenpirogoff
Last active November 15, 2019 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugenpirogoff/2ba6b45f9d962534d35479da14fd169a to your computer and use it in GitHub Desktop.
Save eugenpirogoff/2ba6b45f9d962534d35479da14fd169a to your computer and use it in GitHub Desktop.
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