git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Lehmann <Jens.Lehmann@web.de>
To: "Konrád Lőrinczi" <klorinczi@gmail.com>, git@vger.kernel.org
Subject: Re: Suggestion: git submodule remove
Date: Sat, 11 Apr 2015 14:15:41 +0200	[thread overview]
Message-ID: <5529106D.7050301@web.de> (raw)
In-Reply-To: <CABEDGg8Gos8UTi2U_xgMpx2dJtbtSNCCd2gRr_KR1qESB6gYYA@mail.gmail.com>

Am 10.04.2015 um 13:33 schrieb Konrád Lőrinczi:
> I really miss the
>    git submodule remove
> command.
>
> This should be handle all the tasks what are needed to remove a submodule.
>      - Delete the relevant line from the .gitmodules file.
>      - Delete the relevant section from .git/config.
>      - Run git rm --cached path_to_submodule (no trailing slash).
>      - Delete the now untracked submodule files.
>
> These tasks should be handled automatically.
> Currently you can only remove a submodule manually, no way to do it
> automatically with one command.
> "Removing submodules" and "unsubmodule a submodule" are still a pain
> to do in GIT, even in v2.3.5.

"git rm <submodule-path>" will remove a submodule from .gitmodules,
the index and the work tree (but not from .git/config, that's what
"git submodule deinit" is for).

      reply	other threads:[~2015-04-11 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10 11:33 Suggestion: git submodule remove Konrád Lőrinczi
2015-04-11 12:15 ` Jens Lehmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5529106D.7050301@web.de \
    --to=jens.lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=klorinczi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).