Force Git submodules to always stay current

前端 未结 4 1173
悲哀的现实
悲哀的现实 2020-12-07 18:40

I love git submodules. Also, I hate git submodules. What I love about them is how it enables to you to cleanly compartmentalize dependencies etc. I get the point of havin

4条回答
  •  暖寄归人
    2020-12-07 18:57

    There is no such thing for the moment. To keep the code up-to-date, I use the following commands:

    download all for the first time: git clone --recursive http://github.com/
    download updates in existing repo: git submodule update --remote --recursive --merge

提交回复
热议问题