git submodule

If you want to do this for all submodules, without having to change directories, you can perform

git submodule foreach git reset --hard

You can also use the recursive flag to apply to all submodules:

git submodule foreach --recursive git reset --hard

posted @ 2014-09-26 16:45  lilei9110  阅读(145)  评论(0)    收藏  举报