Skip to content

Instantly share code, notes, and snippets.

@twymer
Created August 20, 2013 14:29
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 twymer/6282116 to your computer and use it in GitHub Desktop.
Save twymer/6282116 to your computer and use it in GitHub Desktop.
Save this as .git/hooks/post-checkout and make it an executable file.
#! /bin/sh
# Start from repository root
cd ./$(git rev-parse --show-cdup)
# Delete .pyc files
find . -name '*.pyc' -delete
# Update submodules
git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment