---
url: 'https://metadrop.net/es/articulos/anadir-un-submodulo-en-git-git-submodule-add'
title: 'Añadir un submódulo en git (git submodule add)'
author: 'Luis Inchausti'
date: '2017-01-17T10:23:54+00:00'
updated: '2026-06-10T06:58:05+00:00'
type: article
summary: 'Sentencias necesarias para añadir un submódulo de git dentro de otro principal.'
tags:
  - Git
published: true
og:
  determiner: Automatic
  site_name: Metadrop
  'image:alt': 'Añadir un submódulo en git (git submodule add)'
  street_address: 'Calle Manuel Luna, 12, 3 Dcha'
  locality: Madrid
  region: Madrid
  postal_code: '28020'
  country_name: España
  email: hola@metadrop.net
  phone_number: '910053180'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      '@type': Article
      '@id': 'https://metadrop.net/es/articulos/anadir-un-submodulo-en-git-git-submodule-add#article'
      name: 'Añadir un submódulo en git (git submodule add)'
      headline: 'Añadir un submódulo en git (git submodule add)'
      description: 'Sentencias necesarias para añadir un submódulo de git dentro de otro principal.'
      about: Git
      datePublished: '2014-05-27T08:00:00+0200'
      dateModified: '2026-06-10T08:58:05+0200'
      author:
        '@type': Person
        name: 'Luis Inchausti'
      publisher:
        '@type': Organization
        '@id': 'https://metadrop.net/#organization'
      mainEntityOfPage: 'https://metadrop.net/es/articulos/anadir-un-submodulo-en-git-git-submodule-add'
    -
      '@type': Organization
      '@id': 'https://metadrop.net/#organization'
      url: 'https://metadrop.net/'
      name: Metadrop
      sameAs:
        - 'https://www.drupal.org/metadrop'
        - 'https://twitter.com/metadrop'
        - 'https://asociaciondrupal.es/partner/metadrop'
        - 'https://www.linkedin.com/company/metadrop'
      logo:
        '@type': ImageObject
        url: 'https://metadrop.net/themes/custom/mdrop_radix/logo-metadrop-500-500.jpg'
        width: '500'
        height: '500'
    -
      '@type': ItemPage
      '@id': 'https://metadrop.net/es/articulos/anadir-un-submodulo-en-git-git-submodule-add'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: Inicio
            item: 'https://metadrop.net/es'
          -
            '@type': ListItem
            position: 2
            name: 'Artículos expertos sobre Drupal y tecnología'
            item: 'https://metadrop.net/es/articulos'
      publisher:
        '@type': Organization
        '@id': 'https://metadrop.net/#organization'
---
 1. [Artículos](https://metadrop.net/es/articulos)
 
  

# Añadir un submódulo en git (git submodule add)

Martes 27 de Mayo de 2014

 

 



Sentencias necesarias para añadir un submódulo de git dentro de otro principal.



   



Para incorporar un submódulo debemos usar la siguiente sintaxis:

```bash
git submodule add [-b <nombre_rama>] <repositorio> <ruta>
```

Ejemplo:

```bash
git submodule add -b 7.x-1.x GeduR@git.drupal.org:project/ga_push.git sites/all/modules/custom/ga_push
```



[Git](https://metadrop.net/es/articulos?text=Git)