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

Help using git subtree

From
GJGabriel Jover <gjover@cells.es>
Date
Jul 30, 2013, 09:32 UTC
Message-ID
<51F78826.1040502@cells.es>
Dear all,

I am trying to avoid using git submodules and thus I am testing if git subtree fit my needs. I have a set of sub-projects linked to a main-project.

Git subtree is very convenient to get all the sub-projects into the main-project directory tree and to send back sub-project commits to the corresponding repository. But I don't understand the work flow very well.

I can add a subtree with a given prefix and pull/push my commits to the repository, but how do I do to pull/push commits from the main-project to the corresponding repository avoiding sub-projects to be sent?

An other question I have is when will be subtree included in git packages. I had to compile git from sources in order to get this feature.

Sincerely,
G. Jover-Manas
-- 
+----------------------------------------------------+
  Gabriel V. Jover Mañas
  Computing Division
  Cells / Alba Synchrotron  [http:/www.cells.es]
  Carretera BP 1413 de Cerdanyola-Sant Cugat, Km. 3.3
  E-08290 Cerdanyola del Valles (Barcelona), Spain
  E-mail: gjover@cells.es
  Phone: +34 93 592 4471
  Office: ALBA P0 Of8/18
+----------------------------------------------------+

Si heu rebut aquest correu per error, us informo que pot contenir informació confidencial i privada i que està prohibit el seu ús. Us agrairiem que ho comuniqueu al remitent i l'elimineu. Gràcies.
Si ha recibido este correo por error, le informo de que puede contener información confidencial  y privada y que está prohibido su uso. Le agradeceré que lo comunique a su remitente y lo elimine. Gracias.
If you have received  this e-mail by error, please note that it may contain confidential and private  information, therefore, the use of this information is strictly forbidden. Please inform the sender of the error and delete the information received. Thank you.
Next: Fredrik Gustafsson
Message 1 of 3 in “Help using git subtree”
  1. Gabriel JoverJul 30, 2013
  2. Fredrik GustafssonJul 30, 2013
  3. Gabriel JoverJul 31, 2013

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.