Created
August 20, 2013 14:29
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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