Skip to content

Instantly share code, notes, and snippets.

@sillage
Last active May 4, 2016 21:37
Show Gist options
  • Save sillage/cb3c101d8225753f9b43 to your computer and use it in GitHub Desktop.
Save sillage/cb3c101d8225753f9b43 to your computer and use it in GitHub Desktop.
Git cheat sheet
# update and merge all remote submodules
# http://stackoverflow.com/questions/5828324/update-git-submodule-to-latest-commit-on-origin
git submodule update --remote --merge
# update repo from upstream
# https://help.github.com/articles/syncing-a-fork/
git fetch upstream && git checkout master && git merge upstream/master
# more help: https://github.com/blog/2104-working-with-submodules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment