Skip to content

Instantly share code, notes, and snippets.

@hell0again
Created February 8, 2014 14:12
Show Gist options
  • Save hell0again/8884353 to your computer and use it in GitHub Desktop.
Save hell0again/8884353 to your computer and use it in GitHub Desktop.
post-mergeでmergeと同時にsubmoduleを自動update
$ cat <<EOF >.git/hooks/post-merge
## mergeと同時にsubmoduleを自動update
echo ""
echo "git submodule update"
git submodule update
EOF
$ chmod a+x .git/hooks/post-merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment