Skip to content

Instantly share code, notes, and snippets.

@ollyg
Created March 4, 2018 09:27
Show Gist options
  • Save ollyg/16c1c16d48856ad6db399e99167cb053 to your computer and use it in GitHub Desktop.
Save ollyg/16c1c16d48856ad6db399e99167cb053 to your computer and use it in GitHub Desktop.
Update git submodule to latest
cd submodule_name
git checkout master && git pull
cd ..
git add submodule_name
git commit -m "updating submodule to latest"
(from https://github.com/tj/git-extras/pull/80#issuecomment-3992323)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment