Force git submodule update --remote for some branches
- From
- Timothy M. Redaelli <timothy.redaelli@gmail.com>
- Date
- Nov 28, 2014, 17:54 UTC
- Message-ID
- <5478B6F1.6070200@gmail.com>
Hi, I have a repository with a submodule and I'd like to force git to checkout the LAST version of the submodule and not the stored one (like git submodule update --remote), but only on some branches and without the need to remember to add --remote every time you are on this branch.
Is there any way to do it? Maybe using .gitmodules?
Thanks
-- Timothy M. Redaelli Arch Linux Trusted User