<?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>Deec.it &#187; svnbook</title>
	<atom:link href="http://www.deec.it/tag/svnbook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deec.it</link>
	<description>Le Guide Pratiche Dell&#039;Informatica</description>
	<lastBuildDate>Sat, 24 Jul 2010 09:40:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creare un repository subversion (svn)</title>
		<link>http://www.deec.it/2009/08/25/creare-un-repository-subversion-svn/</link>
		<comments>http://www.deec.it/2009/08/25/creare-un-repository-subversion-svn/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 12:52:54 +0000</pubDate>
		<dc:creator>loade</dc:creator>
				<category><![CDATA[Programmazione e scripting]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[svnbook]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.deec.it/?p=106</guid>
		<description><![CDATA[



Volete avere un repository dei vostri sorgenti? Con pochissimi comandi, grazie a subversion, potrete averlo.
svnadmin create /path/repository/nome_repository
A questo punto dovete avere una directory che contiene i vostri sorgenti già pronta:
svn import -m &#8220;Prima importazione&#8221; /path/miei/sorgenti/ file:///path/repository/nome_repository/
nel caso il repository si trovi sullo stesso server in cui eseguite il comando:
svn import -m &#8220;Prova&#8221; /path/miei/sorgenti/  svn+ssh://utente@nomehost/path/repository/nome_repository/
nel caso [...]]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.77 -->
<!-- Post[count: 3] -->
<div class="adsense adsense-leadin" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-5841373120371067";
/* 468x60, creato 22/09/09 M&amp;P */
google_ad_slot = "8731175604";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>Volete avere un repository dei vostri sorgenti? Con pochissimi comandi, grazie a subversion, potrete averlo.</p>
<blockquote><p>svnadmin create /path/repository/nome_repository</p></blockquote>
<p>A questo punto dovete avere una directory che contiene i vostri sorgenti già pronta:</p>
<blockquote><p>svn import -m &#8220;Prima importazione&#8221; /path/miei/sorgenti/ file:///path/repository/nome_repository/</p></blockquote>
<p>nel caso il repository si trovi sullo stesso server in cui eseguite il comando:</p>
<blockquote><p>svn import -m &#8220;Prova&#8221; /path/miei/sorgenti/  svn+ssh://utente@nomehost/path/repository/nome_repository/</p></blockquote>
<p>nel caso vogliate utilizzare un tunnel ssh e quindi salvare i sorgenti su un server remoto.</p>
<p>Questa operazione va fattà solo la prima volta.</p>
<p>Per scaricare i sorgenti dal repository in entrambe le modalità (locale/remoto):</p>
<blockquote><p>svn co file:///path/repository/nome_repository/</p>
<p>svn co svn+ssh://utente@nomehost/path/repository/nome_repository/</p></blockquote>
<p>Una volta che avete terminato di lavorare localmente e volere fare la commit dei vostri sorgenti:</p>
<blockquote><p>svn commit /path/miei/sorgenti/</p></blockquote>
<p>Se volete effettuare l&#8217;update dei sorgenti su cui state lavorando con quelli presenti sul repository:</p>
<blockquote><p>svn update /path/miei/sorgenti/</p></blockquote>
<p>Qualche altro comando utile:</p>
<blockquote><p>svn diff -r 16:15 /path/miei/sorgenti/</p></blockquote>
<p>vi fa vedere le differenze fra la versione 15 e 16</p>
<blockquote><p>svn log  /path/miei/sorgenti/</p>
<p>svn log -r3 /path/miei/sorgenti/</p></blockquote>
<p>il primo vi fa vedere i log completi il secondo della versione 3.</p>
<p>Ultimo trucco, per chì utilizza il tunnel ssh con svn, se avete spostato la porta da quella standard (22) dovete editare il seguente file:</p>
<blockquote><p>vi /home/utente/.subversion/config</p></blockquote>
<p>e inserire la seguente riga (2222 è la porta in ascolto sul server remoto)</p>
<blockquote><p>ssh = $SVN_SSH ssh -p 2222</p></blockquote>
<p>Per chi vuole approfondire:</p>
<p><a title="svnbook" href="http://svnbook.red-bean.com/" target="_blank">Svnbook</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deec.it/2009/08/25/creare-un-repository-subversion-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
