Last active
May 7, 2021 19:02
-
-
Save anjanashankar9/0bc6318d5850b1cda0e852e2cc41be80 to your computer and use it in GitHub Desktop.
This file contains 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
users-MacBook-Air:GitAdvanced $ git submodule deinit gitBasics | |
Cleared directory 'gitBasics' | |
Submodule 'gitBasics' (git@github.com:anjanashankar9/gitBasics.git) unregistered for path 'gitBasics' | |
users-MacBook-Air:GitAdvanced $ git st | |
On branch master | |
Your branch is up to date with 'origin/master'. | |
nothing to commit, working tree clean | |
users-MacBook-Air:GitAdvanced $ git rm gitBasics/ | |
rm 'gitBasics' | |
users-MacBook-Air:GitAdvanced $ git st | |
On branch master | |
Your branch is up to date with 'origin/master'. | |
Changes to be committed: | |
(use "git restore --staged <file>..." to unstage) | |
modified: .gitmodules | |
deleted: gitBasics | |
users-MacBook-Air:GitAdvanced $ cat .gitmodules | |
users-MacBook-Air:GitAdvanced $ ls | |
README.md | |
users-MacBook-Air:GitAdvanced $ rm -rf .git/modules/gitBasics/ | |
users-MacBook-Air:GitAdvanced $ git commit -m"Removed Submodule" | |
[master baa3526] Removed Submodule | |
2 files changed, 4 deletions(-) | |
delete mode 160000 gitBasics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment