使用git diff時提示我 git
➜ nomad git:(master) ✗ $ git diff diff --git a/sidecar b/sidecar --- a/sidecar +++ b/sidecar @@ -1 +1 @@ -Subproject commit 16c10617666769520a9d4ae6363f97350960a329 +Subproject commit 16c10617666769520a9d4ae6363f97350960a329-dirty
這裏有解釋:http://stackoverflow.com/questions/4873980/git-diff-says-subproject-is-dirty
解決辦法是:
git submodule foreach --recursive git checkout .
這裏是git submodule詳解:
http://longair.net/blog/2010/06/02/git-submodules-explained/ shell