Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何移除Git SubModule #13

Open
hstarorg opened this issue Jan 13, 2018 · 0 comments
Open

如何移除Git SubModule #13

hstarorg opened this issue Jan 13, 2018 · 0 comments

Comments

@hstarorg
Copy link
Owner

0. mv a/submodule a/submodule_tmp

1. git submodule deinit -f -- a/submodule    
2. rm -rf .git/modules/a/submodule
3. git rm -f a/submodule
# Note: a/submodule (no trailing slash,尾巴上没有斜杠)

# or, if you want to leave it in your working tree and have done step 0
3.   git rm --cached a/submodule
# 还原目录
mv a/submodule_tmp a/submodule 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant