<?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>github | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/github/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Sat, 09 Sep 2017 18:49:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Using forks with composer &#8211; late night edition</title>
		<link>https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/</link>
					<comments>https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/#comments</comments>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Mon, 19 Jan 2015 16:21:46 +0000</pubDate>
				<category><![CDATA[Composer]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[github]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=2611</guid>

					<description><![CDATA[<p>Using your forks of certain packages with composer is actually pretty easy: Add the repo of the fork to the repositories block of your composer.json, you might need to change the version to f.e dev-master and thats it. Great. Actually. But there are some traps, especially when you are mentally already weekend bound: When working &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/" class="more-link">Continue reading<span class="screen-reader-text"> "Using forks with composer &#8211; late night edition"</span></a></p>
The post <a href="https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/">Using forks with composer – late night edition</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Using your forks of certain packages with <a href="https://getcomposer.org" target="_blank">composer</a> is actually pretty easy:<br />
Add the repo of the fork to the repositories block of your composer.json, you might need to change the version to f.e <b>dev-master</b> and thats it. Great. Actually.</p>
<pre class="brush: jscript; title: ; notranslate">
&quot;repositories&quot;: &#x5B;
        {
            &quot;type&quot;: &quot;vcs&quot;,
            &quot;url&quot;: &quot;https://github.com/ivoba/SomeBundle.log&quot;
        }
    ]
</pre>
<p>But there are some traps, especially when you are mentally already weekend bound:</p>
<p>When working in a team, take care that you dont add your fork as a private repo.<br />
This happens when you use the <b>@</b> notation like &#8216;<b>git@github.com</b>&#8216;. Its tempting because it will be the clone url on github when you are logged in, which is very likely.<br />
If you do so your team mates will get errors like this: </p>
<pre class="brush: plain; title: ; notranslate">Failed to execute git clone --no-checkout 'git@github.com:ivoba/SomeBundle.git' &#x5B;...] &amp;&amp; git remote add composer 'git@github.com:ivoba/SomeBundle.git' &amp;&amp; git fetch composer</pre>
<p><span id="more-2611"></span></p>
<p>So better change it to the notation of public repositories like &#8216;<b>git://github.com</b>&#8216; but take care that you change the whole path and not only the protocol like:</p>
<pre class="brush: plain; title: ; notranslate">git://github.com:ivoba/SomeBundle.git</pre>
<p>This will look in port &#8220;<em>ivoba</em>&#8221; ;) and you will get an error like:</p>
<pre class="brush: plain; title: ; notranslate">fatal: Unable to look up github.com (port ivoba) (Servname not supported for ai_socktype)</pre>
<p>If you try the same with https you will still fail with:</p>
<pre class="brush: plain; title: ; notranslate">Cloning into bare repository &#x5B;...]                                                         
  fatal: Unable to find remote helper for 'https'</pre>
<p>So the correct path for public repos is:</p>
<p><code>git://github.com/ivoba/SomeBundle.git[/code]<br />
or</p>
<pre class="brush: plain; title: ; notranslate">https://github.com/ivoba/SomeBundle.git</pre>
<p>with <b>colon slash slash domain slash </b>!</p>
<p>Stupid mistakes but they happen, though its all written in the docs:<br />
<a href="https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository" target="_blank">https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository</a><br />
and<br />
<a href="https://getcomposer.org/doc/05-repositories.md#using-private-repositories" target="_blank">https://getcomposer.org/doc/05-repositories.md#using-private-repositories</a><br />
but sometimes reading alone isnt sufficient ;).</p>The post <a href="https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/">Using forks with composer – late night edition</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2015/01/19/using-forks-composer-late-night-edition/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>install silverstripe with some modules from GIT</title>
		<link>https://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/</link>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Sun, 11 Sep 2011 12:53:22 +0000</pubDate>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Silverstripe]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[installer]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1634</guid>

					<description><![CDATA[<p>This is a small shell script to set up silverstripe CMS along with some modules i often use (as seen in ivo&#8217;s post) The script has two parameters: &#8211; the folder to clone the whole thing into &#8211; the branch/tag to checkout afterwards # install silverstripe + common modules from github # usage sh install_silverstripe.sh &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/" class="more-link">Continue reading<span class="screen-reader-text"> "install silverstripe with some modules from GIT"</span></a></p>
The post <a href="https://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/">install silverstripe with some modules from GIT</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>This is a small shell script to set up <a href="http://www.silverstripe.org/">silverstripe CMS</a><br />
along with some modules i often use (as seen in <a href="https://nerdpress.org/2011/06/06/silverstripe-image-gallery-installation/">ivo&#8217;s post</a>)</p>
<p>The script has two parameters:<br />
&#8211; the folder to clone the whole thing into<br />
&#8211; the branch/tag to checkout afterwards</p>
<pre class="brush: bash; title: ; notranslate">
# install silverstripe + common modules from github
# usage sh install_silverstripe.sh &lt;folder_name&gt; &lt;tag/branch&gt;
# examples:
# sh install_silverstripe.sh some_folder tags/2.4.5
# sh install_silverstripe.sh some_folder master
</pre>
<p><span id="more-1634"></span></p>
<p>As Silverstripe itself is split up in 3 repositories<br />
(the installer/base folder, the cms and the sapphire framework itself)<br />
we fetch the base folder first:</p>
<pre class="brush: bash; title: ; notranslate">
#set up project base folder
git clone git@github.com:silverstripe/silverstripe-installer.git $1
cd $1
git checkout $2
</pre>
<p>Get the cms</p>
<pre class="brush: bash; title: ; notranslate">
#setup cms
git clone git@github.com:silverstripe/silverstripe-cms.git cms
cd cms
git checkout $2
cd ..
</pre>
<p>Get sapphire &#8230;</p>
<pre class="brush: bash; title: ; notranslate">
#setup framework
git clone git@github.com:silverstripe/sapphire.git sapphire
cd sapphire
git checkout $2
cd ..
</pre>
<p>Setup some permissions for the web installer.</p>
<pre class="brush: bash; title: ; notranslate">
#set permissions for install
chmod 0777 assets assets/*
chmod 0666 .htaccess mysite/_config.php assets/*/*
</pre>
<p>Fetch the blackcandy theme from a fourth repository.<br />
Backup the tutorial theme in case we need it.</p>
<pre class="brush: bash; title: ; notranslate">
#install blackcandy theme
mv themes/tutorial ./
rm -rf themes
git clone https://github.com/silverstripe-themes/silverstripe-blackcandy.git themes
cd themes
git checkout $2
cd ..
mv tutorial themes
</pre>
<p>Install some modules</p>
<pre class="brush: bash; title: ; notranslate">
# install common modules
git clone https://github.com/unclecheese/Uploadify.git uploadify
git clone https://github.com/unclecheese/DataObjectManager.git dataobject_manager
git clone https://github.com/silverstripe/silverstripe-userforms.git userforms
</pre>
<p><strong>iIput the script <a href="https://gist.github.com/1209496">on github</a></strong><br />
&#8230;in case you might wanna use it or add something i&#8217;ve missed.</p>The post <a href="https://nerdpress.org/2011/09/11/install-silverstripe-with-some-modules-from-git/">install silverstripe with some modules from GIT</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Unfuddle: Repository read access denied</title>
		<link>https://nerdpress.org/2011/03/21/unfuddle-repository-read-access-denied/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Mon, 21 Mar 2011 13:11:18 +0000</pubDate>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Project Setup]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[unfuddle]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1427</guid>

					<description><![CDATA[<p>Unfuddle: Repository read access denied Ich benutze ja ganz gerne unfuddle für Projekte mit closed source. Dort kann man nämlich mit dem free Account, anders wie bei github, private repositories erstellen. Nun hatte ich aber neulich plötzlich einen Auth Fehler und konnte mich mit meinem key nicht mehr connecten: ERROR:gitosis.serve.main:Repository read access denied fatal: The &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2011/03/21/unfuddle-repository-read-access-denied/" class="more-link">Continue reading<span class="screen-reader-text"> "Unfuddle: Repository read access denied"</span></a></p>
The post <a href="https://nerdpress.org/2011/03/21/unfuddle-repository-read-access-denied/">Unfuddle: Repository read access denied</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Unfuddle: Repository read access denied</p>
<p>Ich benutze ja ganz gerne <a href="http://www.unfuddle.com">unfuddle</a> für Projekte mit closed source.<br />
Dort kann man nämlich mit dem free Account, anders wie bei <a href="http://github.com">github</a>, private repositories erstellen.</p>
<p>Nun hatte ich aber neulich plötzlich einen Auth Fehler und konnte mich mit meinem key nicht mehr connecten:</p>
<pre class="brush: bash; title: ; notranslate">
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly
</pre>
<p>Ich war mir keiner schuld bewußt.</p>
<p>Nachdem ich meinen key gelöscht bei unfuddle hatte und neu anlegen wollte, kam dann die Fehlermeldung:</p>
<pre class="brush: bash; title: ; notranslate">
This public key has already been taken by another user.
If you have multiple accounts, you must use a different public key for each account.
</pre>
<p><span id="more-1427"></span></p>
<p>Des Rätsels Löung war dann <a href="http://unfuddle.com/community/forums/4/topics/362">hier</a> zu finden.</p>
<p>Kurz: ich hatte meinen key noch einem anderen Projekt zugeteilt, wo ich contribute, allerdings mit einem anderen Account.<br />
Also zweiten key angelegt, bei unfuddle eingetragen, über ssh config einen switch eingetragen und schon klappts</p>The post <a href="https://nerdpress.org/2011/03/21/unfuddle-repository-read-access-denied/">Unfuddle: Repository read access denied</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
