Created
May 3, 2016 13:48
-
-
Save ddgenome/f5ea92895dd54fc0eea6be81fab749d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ for d in $(for g in $(find "$GOPATH" -name .git); do r=${g%.git}; b=$(cd $r && git rev-parse --abbrev-ref HEAD); if [[ $b == HEAD ]]; then echo "$r"; fi; done | grep -v -F '/atomisthq/'); do echo "$d"; (cd "$d" && git fetch && git checkout master && git rebase); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't exactly undo, since it will leave you at the HEAD of the master branch, which may be further along than you were when
godep restore
checked out its specific commit.