Skip to content

Instantly share code, notes, and snippets.

@tecandrew
Created November 28, 2022 20:53
Show Gist options
  • Save tecandrew/a78b0d45622a13de8879da07fd17f08e to your computer and use it in GitHub Desktop.
Save tecandrew/a78b0d45622a13de8879da07fd17f08e to your computer and use it in GitHub Desktop.
Reset git submodules (recursive)
#!/bin/bash
git fetch && git reset --hard @{u} && git submodule deinit --all -f && git submodule update --init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment