<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.eqqon.com/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.eqqon.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_Corrupt_Git_Branch</id>
		<title>Fixing Corrupt Git Branch - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.eqqon.com/index.php?action=history&amp;feed=atom&amp;title=Fixing_Corrupt_Git_Branch"/>
		<link rel="alternate" type="text/html" href="http://www.eqqon.com/index.php?title=Fixing_Corrupt_Git_Branch&amp;action=history"/>
		<updated>2026-04-26T10:02:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://www.eqqon.com/index.php?title=Fixing_Corrupt_Git_Branch&amp;diff=1008&amp;oldid=prev</id>
		<title>Henon at 12:56, 3 August 2009</title>
		<link rel="alternate" type="text/html" href="http://www.eqqon.com/index.php?title=Fixing_Corrupt_Git_Branch&amp;diff=1008&amp;oldid=prev"/>
				<updated>2009-08-03T12:56:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:56, 3 August 2009&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Say you corrupted your &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;branch &lt;/del&gt;and want to reset your remote repository to a certain point in your history that is still ok (commit with hash xxxx)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Say&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;you corrupted your &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;github repository (i.e. by playing around with the fork queue =P) &lt;/ins&gt;and want to reset your remote repository to a certain point in your history that is still ok (commit with hash xxxx)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Reset local head to that commit (replace xxxx with commit hash):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Reset local head to that commit (replace xxxx with commit hash):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Henon</name></author>	</entry>

	<entry>
		<id>http://www.eqqon.com/index.php?title=Fixing_Corrupt_Git_Branch&amp;diff=1007&amp;oldid=prev</id>
		<title>Henon: New page: Say you corrupted your branch and want to reset your remote repository to a certain point in your history that is still ok (commit with hash xxxx)  Reset local head to that commit (replace...</title>
		<link rel="alternate" type="text/html" href="http://www.eqqon.com/index.php?title=Fixing_Corrupt_Git_Branch&amp;diff=1007&amp;oldid=prev"/>
				<updated>2009-08-03T12:54:30Z</updated>
		
		<summary type="html">&lt;p&gt;New page: Say you corrupted your branch and want to reset your remote repository to a certain point in your history that is still ok (commit with hash xxxx)  Reset local head to that commit (replace...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Say you corrupted your branch and want to reset your remote repository to a certain point in your history that is still ok (commit with hash xxxx)&lt;br /&gt;
&lt;br /&gt;
Reset local head to that commit (replace xxxx with commit hash):&lt;br /&gt;
 git reset --hard xxxx&lt;br /&gt;
&lt;br /&gt;
Delete corrupt remote branch&lt;br /&gt;
 git push origin :master&lt;br /&gt;
&lt;br /&gt;
Recreate remote branch with your fixed one&lt;br /&gt;
 git push origin master&lt;/div&gt;</summary>
		<author><name>Henon</name></author>	</entry>

	</feed>