git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Force git submodule update --remote for some branches

From
TRTimothy 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
Next: Jens Lehmann
Message 1 of 2 in “Force git submodule update --remote for some branches”
  1. Timothy M. RedaelliNov 28, 2014
  2. Jens LehmannNov 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.