Skip to content

Instantly share code, notes, and snippets.

@nocash
Created February 1, 2011 14:36
Show Gist options
  • Select an option

  • Save nocash/805934 to your computer and use it in GitHub Desktop.

Select an option

Save nocash/805934 to your computer and use it in GitHub Desktop.
#!/bin/bash
git submodule foreach '
git checkout master;
git fetch --all;
git --no-pager log --oneline --reverse master..origin/master;
git reset --hard origin/master
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment