Skip to content

Instantly share code, notes, and snippets.

@twymer
Created August 20, 2013 14:29
Show Gist options
  • Select an option

  • Save twymer/6282116 to your computer and use it in GitHub Desktop.

Select an option

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