<?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>Penguinspeak &#187; Git</title>
	<atom:link href="http://macmartine.com/blog/category/git/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Wed, 09 Dec 2009 23:30:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Getting started with Git and ProjectLocker</title>
		<link>http://macmartine.com/blog/2009/10/getting-started-with-git-and-projectlocker.html</link>
		<comments>http://macmartine.com/blog/2009/10/getting-started-with-git-and-projectlocker.html#comments</comments>
		<pubDate>Wed, 28 Oct 2009 18:50:45 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=83</guid>
		<description><![CDATA[I&#8217;m on OS X &#8212; Windows users may be able to use this as a general guide only. The command lines will not work for you. 1.Install Git for Mac OS X 2. Open up Terminal and type: $ cd ~/.ssh $ ssh-keygen &#60;enter&#62; // defaults to id_rsa &#60;passphrase&#62; &#60;passphrase again&#62; 3. Type ls -l [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m on OS X &#8212; Windows users may be able to use this as a general guide only. The command lines will not work for you.</p>
<p>1.Install<a title="Git OSX Installer" href="http://code.google.com/p/git-osx-installer/downloads/list?can=3&amp;q=&amp;sort=-uploaded&amp;colspec=Filename+Summary+Uploaded+Size+DownloadCount" target="_blank"> Git for Mac OS X</a></p>
<p>2. Open up Terminal and type:</p>
<ul>
<li>$ cd ~/.ssh</li>
<li>$ ssh-keygen</li>
<li>&lt;enter&gt; // defaults to id_rsa</li>
<li>&lt;passphrase&gt;</li>
<li>&lt;passphrase again&gt;</li>
</ul>
<p>3. Type ls -l</p>
<ul>
<li>You should see two new files, id_rsa and id_rsa.pub</li>
</ul>
<p style="text-align: left;">4. This generated a public key (in id_rsa.pub) that you need to enter into ProjectLocker so it can authenticate your machine. You can copy it&#8217;s contents to the clipboard with the following command:</p>
<ul>
<li>$ cat id_rsa.pub | pbcopy</li>
</ul>
<p>5. Go to <a title="Project Locker" href="http://projectlocker.com" target="_blank">ProjectLocker</a> and create a free account (you can always upgrade later)</p>
<p>6. Add a project, and choose &#8216;Git&#8217; as the type</p>
<p>7. Click &#8216;Manage Public Keys&#8217; on the left and add a new one:</p>
<ul>
<li>Name: &lt;name_your_machine&gt; NOTE: This can be anything &#8212; a machine identifier of your choice</li>
<li>User Name: &lt;user name&gt; NOTE: You MUST use the username you used to create the identifier on your machine. It should be listed at the end of the public key, like alias@machinename.local</li>
<li>Key: Paste (You should have the key on your clipboard already from step 4) NOTE: verify that the username at the end of this key matches what you put in the &#8216;user name&#8217; field</li>
</ul>
<p>8.Let&#8217;s test it! At Terminal, type:</p>
<ul>
<li>ssh git-<your_user_name>@free1.projectlocker.com</li>
</ul>
<p>You should get something like this in response:</p>
<p>PTY allocation request failed on channel 0<br />
ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment.<br />
Connection to free1.projectlocker.com closed.</p>
<p>That&#8217;s OK! That&#8217;s what we wanted!</p>
<p>9. In ProjectLocker, click, &#8216;User Home&#8217; on the left, and copy the git location key that should look like this:</p>
<p>Your Git Location: <strong>git-username@free1.projectlocker.com:InitialprojectName.git </strong></p>
<p><strong>10. </strong>In Terminal, nagivate to the directory where your project is you want to commit. Then type the following commands:</p>
<p>NOTE: That before you do your &#8216;git add *&#8217; coming up, you can create a file in the repo root called .gitignore and add any files/folders to it that you want to ignore. For example, mine looks like:</p>
<p>.DS_Store<br />
build</p>
<p>Now on to the commands:</p>
<ul>
<li><strong>git init</strong></li>
<li>git remote add origin git-<strong>username</strong>@free1.projectlocker.com:<strong>InitialprojectName</strong>.git (Substitute &lt;ProjectName&gt; with your project name, and the Git Location key with the one you found in Step 9 above)</li>
<li><strong>git add *</strong></li>
<li><strong>git commit -am &#8220;initial commit&#8221;<br />
</strong></li>
<li>git push origin master</li>
</ul>
<p>Now you should see it uploading! mine looked like this:</p>
<p>Counting objects: 199, done.<br />
Delta compression using up to 2 threads.<br />
Compressing objects: 100% (171/171), done.<br />
Writing objects: 100% (199/199), 3.66 MiB | 857 KiB/s, done.<br />
Total 199 (delta 39), reused 0 (delta 0)<br />
To git-username@free1.projectlocker.com:ProjectName.git<br />
* [new branch]      master -&gt; master</p>
<p>11. Now back in ProjectLocker when I navigate to my project I created I see all my files checked in there!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Getting+started+with+Git+and+ProjectLocker+http://bit.ly/3ldAM8" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/10/getting-started-with-git-and-projectlocker.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Version control: The search for a project versioning solution</title>
		<link>http://macmartine.com/blog/2009/10/version-control-the-search-for-a-project-versioning-solution.html</link>
		<comments>http://macmartine.com/blog/2009/10/version-control-the-search-for-a-project-versioning-solution.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 15:30:25 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[Version Control]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=81</guid>
		<description><![CDATA[I&#8217;ve been going through a Fall cleaning of sorts in my house, my office, and now my computer. I feel like I&#8217;ve gotten a little too lax with my files and code security so it&#8217;s time to try a new system and see if I can keep up with it and lessen the risk of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been going through a Fall cleaning of sorts in my house, my office, and now my computer. I feel like I&#8217;ve gotten a little too lax with my files and code security so it&#8217;s time to try a new system and see if I can keep up with it and lessen the risk of losing all my bits of projects scattered all over the place.</p>
<p>With all this <a title="Git" href="http://git-scm.com/" target="_blank">Git</a> hype, I&#8217;m going to give it a try.</p>
<p>When it comes to all these projects I have everywhere, I&#8217;m just a one man team &#8212; I don&#8217;t need to share the code base with anyone. Also, I need a lot of repositories &#8212; I&#8217;m not like a team focusing on one project. I skip around, and I&#8217;m great at not finishing some of them but I want to keep them around of course. So I started looking around for reasonable Git hosts. I hear a lot of good things about <a title="GitHub" href="http://github.com/" target="_blank">GitHub</a>, but with the number of repositories I&#8217;ll use, I&#8217;ll quickly be paying more than I&#8217;m willing too at this time. Similar problem with <a title="Unfuddle" href="http://unfuddle.com" target="_blank">Unfuddle</a>. Now, I have to say, I may very well go with GitHub due to it&#8217;s reputation if I only needed one (or a couple) repos. But for my case <a title="ProjectLocker" href="http://projectlocker.com" target="_blank">ProjectLocker</a> really seems to fit the bill because with the free account I&#8217;m limited by space, not project number, repository count, or having to have the projects public (I want them private!).</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Version+control%3A+The+search+for+a+project+versioning+solution+http://bit.ly/2qwnk1" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big2.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/10/version-control-the-search-for-a-project-versioning-solution.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
