<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.bdsa.dev/index.php?action=history&amp;feed=atom&amp;title=Git_%3A_Supprimer_fichier_de_tous_les_commit</id>
	<title>Git : Supprimer fichier de tous les commit - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bdsa.dev/index.php?action=history&amp;feed=atom&amp;title=Git_%3A_Supprimer_fichier_de_tous_les_commit"/>
	<link rel="alternate" type="text/html" href="https://wiki.bdsa.dev/index.php?title=Git_:_Supprimer_fichier_de_tous_les_commit&amp;action=history"/>
	<updated>2026-09-11T02:46:12Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://wiki.bdsa.dev/index.php?title=Git_:_Supprimer_fichier_de_tous_les_commit&amp;diff=21&amp;oldid=prev</id>
		<title>David : Création</title>
		<link rel="alternate" type="text/html" href="https://wiki.bdsa.dev/index.php?title=Git_:_Supprimer_fichier_de_tous_les_commit&amp;diff=21&amp;oldid=prev"/>
		<updated>2023-12-01T09:50:20Z</updated>

		<summary type="html">&lt;p&gt;Création&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Cas concret d&amp;#039;utilisation : un fichier a été supprimé du FS mais toujours présent dans le repository.&lt;br /&gt;
&lt;br /&gt;
Cette command va supprimer le fichier du repository ainsi que ses références au sein des commits.&lt;br /&gt;
&lt;br /&gt;
Commande : git filter-branch&amp;lt;ref&amp;gt;https://git-scm.com/docs/git-filter-branch&amp;lt;/ref&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
git filter-branch -f --index-filter &amp;#039;git rm --cached --ignore-unmatch mon_fichier.ext&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;!-- Lets you rewrite Git revision history by rewriting the branches mentioned in the &amp;lt;rev-list options&amp;gt;, applying custom filters on each revision. Those filters can modify each tree (e.g. removing a file or running a perl rewrite on all files) or information about each commit. Otherwise, all information (including original commit times or merge information) will be preserved. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>David</name></author>
	</entry>
</feed>