2017-05-04 23 views
1

私は自分のレポからサブモジュールを削除しようとしています。これは私がレポを削除するために使用してい手順は次のとおりです。Git:サブモジュールエラーの削除

Delete the relevant section from the .gitmodules file. 
Stage the .gitmodules changes git add .gitmodules 
Delete the relevant section from .git/config. 
Run git rm --cached path_to_submodule 

しかし、私は、このコマンドgit rm --cached path_to_submoduleを実行したとき、私はこのエラーを取得:

fatal: Please stage your changes to .gitmodules or stash them to proceed 

た場合は、私はこのメッセージを取得するgit statusを走りました

fatal: Not a git repository:path to submodule 

サブモジュールを削除する理由と方法を知っている人はいますか?

本当にありがとうございます。

答えて

3

最初にサブモジュールの登録を解除する必要があります。

git submodule deinit <path_to_submodule> 
+0

ありがとう – user2924482

関連する問題