<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vm-kernel &#187; git-switch-branch</title>
	<atom:link href="http://vm-kernel.org/blog/tag/git-switch-branch/feed/" rel="self" type="application/rss+xml" />
	<link>http://vm-kernel.org/blog</link>
	<description>All about emulation and virtualization</description>
	<lastBuildDate>Sat, 17 Apr 2010 03:51:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>a misunderstanding of git-checkout</title>
		<link>http://vm-kernel.org/blog/2008/12/12/a-misunderstanding-of-git-checkout/</link>
		<comments>http://vm-kernel.org/blog/2008/12/12/a-misunderstanding-of-git-checkout/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 07:51:10 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[git-checkout]]></category>
		<category><![CDATA[git-switch-branch]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2008/12/12/a-misunderstanding-of-git-checkout/</guid>
		<description><![CDATA[I work in branch master and there are some changes uncommited. Now I have some ideas and want to try it *without* effecting the branch master. I first create a branch test and then checkout to branch test.

kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git branch test

kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git checkout test

Switched to branch &#34;test&#34;

kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git branch

 master

*test

And then I work in branch [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">I work in branch master and there are some changes uncommited. Now I have some ideas and want to try it *without* effecting the branch master. I first create a branch test and then checkout to branch test.</p>
<pre style="border-right: #cecece 1px solid; padding-right: 5px; border-top: #cecece 1px solid; padding-left: 5px; min-height: 40px; padding-bottom: 5px; overflow: auto; border-left: #cecece 1px solid; padding-top: 5px; border-bottom: #cecece 1px solid; background-color: #e9e9e9">
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9">kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git branch test
</pre>
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9">kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git checkout test
</pre>
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9">Switched to branch &quot;<span style="color: #8b0000">test</span>&quot;
</pre>
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9">kill-bill:/home/root/sdc/qemu/qemu-omap/svn# git branch
</pre>
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9"> master
</pre>
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,&#39;Courier New&#39;,courier,monospace; background-color: #e9e9e9">*test</pre>
</pre>
<p align="justify">And then I work in branch test and make some changes to source file a.c b.c and etc. At last, I want to return to branch master and abandon the changes in branch test. But the result is not same as what I thought. The files changed in branch test are also changed in branch master!!</p>
<p align="justify">Git-checkout DOES NOT save your context and uncommitted changes to somewhere and restore them when you return. If you want git to do so, please use <a href="http://code.google.com/p/git-switch-branch/" target="_blank">git-switch-branch</a> instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2008/12/12/a-misunderstanding-of-git-checkout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
