From: "FIGADERE, LAURENT" <laurent.figadere@atos.net>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: git , submodules and remove from historic question
Date: Mon, 13 Jan 2020 09:41:34 +0000 [thread overview]
Message-ID: <HE1PR0202MB263439EFAE785201C61495ABE6350@HE1PR0202MB2634.eurprd02.prod.outlook.com> (raw)
In-Reply-To: <HE1PR0202MB2634CD91D2750E199098FACAE6350@HE1PR0202MB2634.eurprd02.prod.outlook.com>
Dear git community ,
I am using git submodule features.
So, by example, I have a repository top which include a sub repository sub-repo.
I would like to re-write the whole historic on the top repository without the sub-repo.
I tried to use git-filter command but I have an issue on sub-repo.
Here the commands and outputs:
[10:27:42] $ git submodule
d3fc420ee38babe74d6e3838b5b2a946ee551fa7 sub-repo (v1.0)
[9:55:48] $ git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch sub-repo' --prune-empty --tag-name-filter cat -- --all
Rewrite 471a2c664466a364bfe5fdf774c7c0d7efe50396 (32/54) (3 seconds passed, remaining 2 predicted) fatal: exec '--super-prefix= sub-repo/': cd to sub-repo' failed: No such file or directory
error: Submodule sub-repo' could not be updated.
error: Submodule ' sub-repo' cannot checkout new HEAD.
Could not initialize the index
Was somebody able to remove such historic from a top repository?
Thanks by advance for your help.
Kind Regards,
Laurent FIGADERE
next parent reply other threads:[~2020-01-13 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <HE1PR0202MB2634CD91D2750E199098FACAE6350@HE1PR0202MB2634.eurprd02.prod.outlook.com>
2020-01-13 9:41 ` FIGADERE, LAURENT [this message]
2020-01-15 5:14 ` git , submodules and remove from historic question Jonathan Nieder
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HE1PR0202MB263439EFAE785201C61495ABE6350@HE1PR0202MB2634.eurprd02.prod.outlook.com \
--to=laurent.figadere@atos.net \
--cc=git@vger.kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).