<?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>KhmerAK* &#124; All around Cambodia &#38; Technology &#187; git</title>
	<atom:link href="http://khmerak.com/post/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://khmerak.com</link>
	<description>keep moving, keep hacking</description>
	<lastBuildDate>Mon, 31 May 2010 03:06:41 +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 new Rails App and Git</title>
		<link>http://khmerak.com/post/a-new-rails-app-and-git/</link>
		<comments>http://khmerak.com/post/a-new-rails-app-and-git/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 05:17:13 +0000</pubDate>
		<dc:creator>khmerak</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://khmerak.com/?p=384</guid>
		<description><![CDATA[I&#8217;ve always got confuse (4get neng na) when mostly starting a new rails app and have it configured to work with git. So here&#8217; s a quick note to remember:
new rails app:

1
$&#62; sudo rails my_new_app

Then add a git to it:

1
2
$&#62; cd my_new_app
$&#62; sudo git init

Then just tell git who were are:

1
$&#62;git config --global user.name &#34;Your [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always got confuse (4get neng na) when mostly starting a new rails app and have it configured to work with git. So here&#8217; s a quick note to remember:</p>
<p>new rails app:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; sudo rails my_new_app</pre></td></tr></table></div>

<p>Then add a git to it:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; cd my_new_app
$&gt; sudo git init</pre></td></tr></table></div>

<p>Then just tell git who were are:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt;git config --global user.name &quot;Your Name&quot;; git config --global user.email &quot;your@email.com&quot;</pre></td></tr></table></div>

<p>Tell git to ignore some files and folders<br />
at application root create .gitignore file containing:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; sudo touch .gitignore
$&gt; sudo vim .gitignore</pre></td></tr></table></div>

<p>and you may add the following to .gitignore</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">log/*.log
tmp/**/*
.DS_Store
doc/api
doc/app</pre></td></tr></table></div>

<p>Create some more .gitignore files so the empty directories get tracked:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$&gt; touch log/.gitignore
$&gt; touch tmp/.gitignore</pre></td></tr></table></div>

<p>and commit:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">$ git add .
$ git commit -m &quot;initial Rails app&quot;</pre></td></tr></table></div>

<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://khmerak.com/post/a-new-rails-app-and-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
