Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Last active May 7, 2021 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanashankar9/0bc6318d5850b1cda0e852e2cc41be80 to your computer and use it in GitHub Desktop.
Save anjanashankar9/0bc6318d5850b1cda0e852e2cc41be80 to your computer and use it in GitHub Desktop.
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