<?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>Pass By Value &#187; slicehost</title>
	<atom:link href="http://passbyvalue.com/tag/slicehost/feed/" rel="self" type="application/rss+xml" />
	<link>http://passbyvalue.com</link>
	<description>... or is it pass by reference?</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:09:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Git repositories with Slicehost</title>
		<link>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/</link>
		<comments>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 11:31:09 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[slicehost]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=157</guid>
		<description><![CDATA[No doubt I am really happy with my Slicehost VPS, it has been so hassle free!  The best part about Slicehost is all the amazing articles they provide to help you get going with your slice. I&#8217;ve setup my slice to host my private git repositories, particularly since I wanted to use them with Rails [...]]]></description>
			<content:encoded><![CDATA[<p>No doubt I am really happy with my <a href="http://www.slicehost.com">Slicehost</a> VPS, it has been so hassle free!  The best part about Slicehost is all the amazing articles they provide to help you get going with your slice.</p>
<p>I&#8217;ve setup my slice to host my private git repositories, particularly since I wanted to use them with Rails and Capistrano.  This article provide to be just what I needed:</p>
<p><a href="http://articles.slicehost.com/2009/5/13/capistrano-series-setting-up-git">http://articles.slicehost.com/2009/5/13/capistrano-series-setting-up-git</a></p>
<p>The article even shows you how to secure the shell that the git user has to avoid anyone SSHing into your box with their ID.  However, it doesn&#8217;t tell you what to do when you want to create another repository as you cannot switch to the git user while ever it is using the git-shell as opposed to a normal shell.  The trick is you need to switch with the root user as only they are allowed to provide an alternative shell.  Here are the commands once you have logged into your slice with a user that is able to sudo:</p>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">--shell</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #c20cb9; font-weight: bold;">git</span><br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">git</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">mkdir</span> project2<br />
$ <span style="color: #7a0874; font-weight: bold;">cd</span> project2<br />
$ <span style="color: #c20cb9; font-weight: bold;">git</span> <span style="color: #660033;">--bare</span> init<br />
$ <span style="color: #7a0874; font-weight: bold;">exit</span></div></div>
<p>Now your repository is good to go and you can follow the steps from &#8220;Making your first commit&#8221; section.</p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/12/git-repositories-with-slicehost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

