Skip to content

Instantly share code, notes, and snippets.

@camsaul
Created August 18, 2015 21:04
Show Gist options
  • Save camsaul/826ea902765cdd3d2cfd to your computer and use it in GitHub Desktop.
Save camsaul/826ea902765cdd3d2cfd to your computer and use it in GitHub Desktop.
Setup Git Submodules To Auto-Pull
git submodule update --init
git config --add fetch.recurseSubmodules true
git config alias.pull '!f(){ git pull "$@" && git submodule update --init --recursive; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment