# To reset the file status of a git submodule
git submodule foreach git reset --hard
# If you only want to reset a specific submodule
git submodule reset --hard <submodule-name>
# This will update the submodules to the latest revision in the repository,
# and it will also initialize any submodules that are not currently initialized.
git submodule update --init --recursive
Created
May 17, 2023 08:36
-
-
Save Aisuko/825eb5e9497d2e4ab673301f0120a13a to your computer and use it in GitHub Desktop.
git commands for sub module
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment