Re: removed submodules shown as untracked when switching branches
- From
Stefan Beller <sbeller@google.com>
- Date
- Feb 22, 2018, 23:53 UTC
- Message-ID
- <CAGZ79kYS_yJs2uFqLDwCgq4W0HrnMxZcCx8-dTXYf3hpPZYWFg@mail.gmail.com>
- In-Reply-To
- <6add3709b4eb469bb7c8d6319637b53a@USEPRDEX2.corp.kns.com>
On Thu, Feb 22, 2018 at 12:26 PM, Mike Friedrich <mfriedrich@kns.com> wrote:
Show 5 quoted lines
> git submodule add ../submodule sub > git add sub > git commit -m "submodule added" > > git checkout master
The original behavior of checkout is to ignore submodules, hence it will be left alone. Can you retry this recipe with --recurse-submodules given to checkout. (Or rather run "git config submodule.recurse true" once)
Thanks, Stefan