<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Git hates me.</title>
		<link>http://forums.leaflabs.com/topic.php?id=903</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:19 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=903" rel="self" type="application/rss+xml" />

		<item>
			<title>perry on "Git hates me."</title>
			<link>http://forums.leaflabs.com/topic.php?id=903#post-5591</link>
			<pubDate>Thu, 07 Jul 2011 22:24:03 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">5591@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hi robodude,&#60;/p&#62;
&#60;p&#62;You can find the last commit you want to go back to with:&#60;br /&#62;
&#60;code&#62;git log&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;That will give you the SHA hash of the commit you want to go back to. In order to discard&#60;br /&#62;
your changes and go back to that state, use:&#60;br /&#62;
&#60;code&#62;git reset --hard &#38;lt;SHA_HASH&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If you already pushed the bad commits to the world, you can change history by pushing&#60;br /&#62;
your new history with:&#60;br /&#62;
&#60;code&#62;git push --force origin&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Keep in mind that doing this will change history for anybody that has already pulled from&#60;br /&#62;
your repository and cause all sorts of headaches. There are ways to get out of it but it takes&#60;br /&#62;
some git-fu that would take a while to explain.&#60;/p&#62;
&#60;p&#62;-perry
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Git hates me."</title>
			<link>http://forums.leaflabs.com/topic.php?id=903#post-5561</link>
			<pubDate>Wed, 06 Jul 2011 12:20:39 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">5561@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;heh, get on irc and we'll talk&#60;/p&#62;
&#60;p&#62;edit: in short though, let's say you're on your master branch and haven't pushed the changes&#60;/p&#62;
&#60;p&#62;then first do&#60;br /&#62;
$ git rebase -i origin/master&#60;/p&#62;
&#60;p&#62;and delete the lines for the commits you don't want, save and quit&#60;/p&#62;
&#60;p&#62;you should be good&#60;/p&#62;
&#60;p&#62;you can still get on IRC if you want some more advice
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "Git hates me."</title>
			<link>http://forums.leaflabs.com/topic.php?id=903#post-5559</link>
			<pubDate>Wed, 06 Jul 2011 12:17:42 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">5559@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Git hates me. I am sad.&#60;/p&#62;
&#60;p&#62;So, pretend your friend, yes friend... committed something that wasn't supposed to be committed. How do  you seamlessly delete those commits without anyone knowing they ever existed?&#60;/p&#62;
&#60;p&#62;I tried to ... I mean, my friend tried to rebase and delete the commits from the interactive mode, but he says it made things work.&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
