<?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>soledad penadés &#187; git</title>
	<atom:link href="http://soledadpenades.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://soledadpenades.com</link>
	<description>repeat 4[fd 100 rt 90]</description>
	<lastBuildDate>Wed, 25 Apr 2012 21:10:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Merge/update a forked git repository</title>
		<link>http://soledadpenades.com/2010/11/05/mergeupdate-a-forked-git-repository/</link>
		<comments>http://soledadpenades.com/2010/11/05/mergeupdate-a-forked-git-repository/#comments</comments>
		<pubDate>Fri, 05 Nov 2010 00:58:01 +0000</pubDate>
		<dc:creator>sole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=3129</guid>
		<description><![CDATA[First add the &#8220;upstream&#8221; remote: git remote add upstream https://github.com/mrdoob/three.js.git Then fetch it: git fetch upstream Merge it with your local code: git merge upstream/master Resolve any possible conflicts (i.e. go through each file and edit it as necessary), commit and push them, and you&#8217;re done! Hopefully the network graph will show you a nicely [...]]]></description>
			<content:encoded><![CDATA[<p>First add the &#8220;upstream&#8221; remote:</p>
<div class="syhi_block"><code><span style="color: #c20cb9; font-weight: bold;">git</span> remote add upstream https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>mrdoob<span style="color: #000000; font-weight: bold;">/</span>three.js.git</code></div>
<p>Then fetch it:</p>
<div class="syhi_block"><code><span style="color: #c20cb9; font-weight: bold;">git</span> fetch upstream</code></div>
<p>Merge it with your local code:</p>
<div class="syhi_block"><code><span style="color: #c20cb9; font-weight: bold;">git</span> merge upstream<span style="color: #000000; font-weight: bold;">/</span>master</code></div>
<p>Resolve any possible conflicts (i.e. go through each file and edit it as necessary), commit and push them, and you&#8217;re done!</p>
<p>Hopefully the <a href="https://github.com/mrdoob/three.js/network">network graph</a> will show you a nicely updated graph in your timeline ;)</p>
<p><img src="/imgs/2010/git_network_graph.png" alt="Git network graph" /></p>
 <p><a href="http://soledadpenades.com/?flattrss_redirect&amp;id=3129&amp;md5=2101af0ca9ab7911883e1a01778cc3fb" title="Flattr" target="_blank"><img src="http://soledadpenades.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2010/11/05/mergeupdate-a-forked-git-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=8399&amp;amp;url=http%3A%2F%2Fsoledadpenades.com%2F2010%2F11%2F05%2Fmergeupdate-a-forked-git-repository%2F&amp;amp;language=en_GB&amp;amp;category=text&amp;amp;title=Merge%2Fupdate+a+forked+git+repository&amp;amp;description=First+add+the+%22upstream%22+remote%3A%0D%0A%0D%0A%0D%0Agit+remote+add+upstream+https%3A%2F%2Fgithub.com%2Fmrdoob%2Fthree.js.git%0D%0A%0D%0A%0D%0AThen+fetch+it%3A%0D%0A%0D%0A%0D%0Agit+fetch+upstream%0D%0A%0D%0A%0D%0AMerge+it+with+your+local+code%3A%0D%0A%0D%0A%0D%0Agit+merge+upstream%2Fmaster%0D%0A%0D%0A%0D%0AResolve+any+possible+conflicts+%28i.e.+go+through+each+file+and+edit+it+as+necessary%29%2C+commit+and+push+them%2C+and+you%27re+done%21%0D%0A%0D%0AHopefully+the+network+graph+will+show+you+a+nicely+updated+graph+in+your+timeline+%3B%29%0D%0A%0D%0A&amp;amp;tags=git%2Cgithub%2Ctrick%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Breakpoint demolog, days 32-33: moving to Windows</title>
		<link>http://soledadpenades.com/2010/03/08/breakpoint-demolog-days-32-33-moving-to-windows/</link>
		<comments>http://soledadpenades.com/2010/03/08/breakpoint-demolog-days-32-33-moving-to-windows/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 01:53:29 +0000</pubDate>
		<dc:creator>sole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[breakpoint]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[demoscene]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=2458</guid>
		<description><![CDATA[Since I&#8217;m going to be away from my main computer for a few days, I reformatted mrdoob&#8217;s laptop so that it could run Windows. Mind you, this is a Macbook Pro computer, which means that installing Windows is a long process, specially if you make a mistake and have to reinstall Leopard from start again! [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;m going to be away from my main computer for a few days, I reformatted <a href="http://mrdoob.com">mrdoob&#8217;s</a> laptop so that it could run Windows. Mind you, this is a Macbook Pro computer, which means that installing Windows is a long process, specially if you make a mistake and have to reinstall Leopard from start again!</p>
<p>So it was a &#8220;very interesting&#8221; Saturday evening+night: the computer doing its stuff, while I cursed Bill Gates and Steve Jobs indistinctly. You can&#8217;t appreciate enough how fast the Ubuntu installation is, until you have to reinstall Mac OS or Windows again. How can they be that DAMN SLOW?!</p>
<p>Anyway, I managed to install Visual Studio and all that. I have even installed cygwin so that I can keep using a decent command line and git. I have set up a remote repository on a server, so that I can share the changes between computers too. Not that I think I&#8217;m going to touch much code in the Linux computer, but it&#8217;s good to have that. Just in case the laptop data gets corrupted or something :)</p>
<p>I have fixed the couple of bugs I had from Friday &#8211;nothing too serious, just some errors not being checked&#8211; and the &#8220;demo&#8221; is working as expected: the song is loaded, a simple triangle is shown in the screen while the song is playing and when it finishes, the demo exists. However there&#8217;s a bit of cracks and distortions here and there&#8230; I might probably have broken something in the SorolletVoice class while fixing something else, so what I&#8217;m going to do is to compile the VSTi for Windows, and compose the song using Renoise on Windows. After all, it&#8217;s all the same format at the end&#8230; and that way I can make sure that what I heard in Renoise is more or less the same than in the demo!</p>
<p>And the final paragraph is dedicated to <a href="http://iquilezles.org">Iq</a>: the size of the simplest program that uses my player (the one which does a WAV dump) is 86kb, Release. When <a href="http://www.farbrausch.de/~fg/kkrunchy/">kkrunchified</a>, it goes down to approximately 31kb. But my demo is using SDL&#8230; and that simple program doesn&#8217;t even open a window or output any sound anywhere, so I tried to load your 64k framework in Visual Studio 2008 &#8211;with the hope of using it as a base instead of using SDL&#8211; but it systematically refused to compile :-( There are errors in some structs from the events file, but I can&#8217;t quite get why, because they look perfectly fine to me. Maybe you&#8217;re using VS2005?</p>
 <p><a href="http://soledadpenades.com/?flattrss_redirect&amp;id=2458&amp;md5=461def8d89e836d446a3b32ba5a0060c" title="Flattr" target="_blank"><img src="http://soledadpenades.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2010/03/08/breakpoint-demolog-days-32-33-moving-to-windows/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=8399&amp;amp;url=http%3A%2F%2Fsoledadpenades.com%2F2010%2F03%2F08%2Fbreakpoint-demolog-days-32-33-moving-to-windows%2F&amp;amp;language=en_GB&amp;amp;category=text&amp;amp;title=Breakpoint+demolog%2C+days+32-33%3A+moving+to+Windows&amp;amp;description=Since+I%27m+going+to+be+away+from+my+main+computer+for+a+few+days%2C+I+reformatted+mrdoob%27s+laptop+so+that+it+could+run+Windows.+Mind+you%2C+this+is+a+Macbook+Pro+computer%2C+which+means+that+installing+Windows+is+a+long+process%2C+specially+if+you+make+a+mistake+and+have+to+reinstall+Leopard+from+start+again%21%0D%0A%0D%0ASo+it+was+a+%22very+interesting%22+Saturday+evening%2Bnight%3A+the+computer+doing+its+stuff%2C+while+I+cursed+Bill+Gates+and+Steve+Jobs+indistinctly.+You+can%27t+appreciate+enough+how+fast+the+Ubuntu+installation+is%2C+until+you+have+to+reinstall+Mac+OS+or+Windows+again.+How+can+they+be+that+DAMN+SLOW%3F%21%0D%0A%0D%0AAnyway%2C+I+managed+to+install+Visual+Studio+and+all+that.+I+have+even+installed+cygwin+so+that+I+can+keep+using+a+decent+command+line+and+git.+I+have+set+up+a+remote+repository+on+a+server%2C+so+that+I+can+share+the+changes+between+computers+too.+Not+that+I+think+I%27m+going+to+touch+much+code+in+the+Linux+computer%2C+but+it%27s+good+to+have+that.+Just+in+case+the+laptop+data+gets+corrupted+or+something+%3A%29%0D%0A%0D%0AI+have+fixed+the+couple+of+bugs+I+had+from+Friday+--nothing+too+serious%2C+just+some+errors+not+being+checked--+and+the+%22demo%22+is+working+as+expected%3A+the+song+is+loaded%2C+a+simple+triangle+is+shown+in+the+screen+while+the+song+is+playing+and+when+it+finishes%2C+the+demo+exists.+However+there%27s+a+bit+of+cracks+and+distortions+here+and+there...+I+might+probably+have+broken+something+in+the+SorolletVoice+class+while+fixing+something+else%2C+so+what+I%27m+going+to+do+is+to+compile+the+VSTi+for+Windows%2C+and+compose+the+song+using+Renoise+on+Windows.+After+all%2C+it%27s+all+the+same+format+at+the+end...+and+that+way+I+can+make+sure+that+what+I+heard+in+Renoise+is+more+or+less+the+same+than+in+the+demo%21%0D%0A%0D%0AAnd+the+final+paragraph+is+dedicated+to+Iq%3A+the+size+of+the+simplest+program+that+uses+my+player+%28the+one+which+does+a+WAV+dump%29+is+86kb%2C+Release.+When+kkrunchified%2C+it+goes+down+to+approximately+31kb.+But+my+demo+is+using+SDL...+and+that+simple+program+doesn%27t+even+open+a+window+or+output+any+sound+anywhere%2C+so+I+tried+to+load+your+64k+framework+in+Visual+Studio+2008+--with+the+hope+of+using+it+as+a+base+instead+of+using+SDL--+but+it+systematically+refused+to+compile+%3A-%28+There+are+errors+in+some+structs+from+the+events+file%2C+but+I+can%27t+quite+get+why%2C+because+they+look+perfectly+fine+to+me.+Maybe+you%27re+using+VS2005%3F&amp;amp;tags=breakpoint%2Ccpp%2Ccygwin%2Cdemoscene%2Cgit%2Cmac+os+x%2Cvisual+studio%2Cwindows%2Cblog" type="text/html" />
	</item>
		<item>
		<title>My Git workflow</title>
		<link>http://soledadpenades.com/2009/12/18/my-git-workflow/</link>
		<comments>http://soledadpenades.com/2009/12/18/my-git-workflow/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 12:41:29 +0000</pubDate>
		<dc:creator>sole</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=2333</guid>
		<description><![CDATA[I first attempted to use Git almost a year ago. I tried to use it as a kind of rsync&#8217;er between computers for my personal projects+data folder. It didn&#8217;t work too well: I think it was primarily built with the idea of versioning and syncing source files, not thousands of WAV sample files scattered around [...]]]></description>
			<content:encoded><![CDATA[<p>I first attempted to use Git almost a year ago. I tried to use it as a kind of rsync&#8217;er between computers for my personal projects+data folder. It didn&#8217;t work too well: I think it was primarily built with the idea of versioning and syncing source files, not thousands of WAV sample files scattered around thousands of nested folders. So I left &#8220;Start using Git&#8221; in my to-do list and almost forgot about it.</p>
<p>Recently I was about to start a project where I didn&#8217;t know quite well what direction it was going to take. So I was there, experimenting and hacking code here and there while investigating where would it bring us, when I realised that I would like to have a snapshot of the code at that point, before continuing with the next part. The classic solution would have been to make a .zip of the code folder, or a copy of the folder in the above directory, and continue. But if you want to compare between versions, manually calling diff between file versions is cumbersome. I didn&#8217;t want to add the code to the subversion repository because it was by no means ready yet for anything. So I though: why don&#8217;t I use git for this?</p>
<p>First steps were a bit uncertain, but I quickly developed a simple yet effective command line technique. Yeah, no IDE plug-in whatsoever, I am just using a bash terminal. It works pretty much like this:</p>
<ul>
<li>code code code</li>
<li>looks good! let&#8217;s store this&#8230;</li>
<li><strong>git add file1.cpp file2.cpp</strong> &#8230;&#8230;&#8230;. or <strong>git add .</strong> for adding all changed files to the commit</li>
<li><strong>git commit</strong> (so that I can enter more than one line of commit message, in the editor that shows up) or <strong>git commit -m &#8216;commit message&#8217;</strong> for one liners.</li>
</ul>
<p>Sometimes, when I want to see what has changed, I use <strong>gitk</strong>. It is admittedly ugly but once you get it, it&#8217;s nicer than reading plain <strong>diff</strong> output in a terminal screen. Specially because you can navigate between changes, instead of having to manually invoke diff for each file you want to compare.</p>
<p>At a certain point I wanted to make a huge code change, so I made a new branch. Actually, I haven&#8217;t gone back to the other branch since then, but it&#8217;s good to know it&#8217;s there in case I want to see how the code is in that totally incompatible code and class-wise approach to the problem.</p>
<p>Probably one of the things I like more is that everything is lightning fast. Since the repository is stored locally, there is no more waiting for commits to finish or contacting the server for getting a diff. Even if your Subversion server is in your local network, it will never beat the experience of a localhost, direct disk access based repository. This way, one doesn&#8217;t get distracted with the check in/commit process; it becomes an almost automatic action so the mind can be focused in the real problem: the code!</p>
<p>If you&#8217;re an advanced git user, you might have already realised that I am only using a very reduced set of git features. Whether that&#8217;s <em>sad</em> or not, I leave it up to you; I just wanted to highlight the notion that although git is generally used (or was designed) for huge projects with lots of collaborators branching and merging intensively and all that, <strong>it is actually very good for producing what I call code sketches</strong>, and it doesn&#8217;t need to be used by several users with all the <em>clone</em>, <em>pull</em>, <em>push</em> and rest of single-worded verbs paraphernalia to enjoy its power.</p>
<p>Please don&#8217;t understand this post as a <q>subversion sucks, use git</q> square-headed litany, but rather as a friendly <q>git could be quite useful, if you have some spare time you might consider having a look at it</q> suggestion from a long-time Subversion user who knows Git is intimidating but worth the effort to learn :D</p>
 <p><a href="http://soledadpenades.com/?flattrss_redirect&amp;id=2333&amp;md5=77b36f02712d19e33d28cf9b5d7e3ad1" title="Flattr" target="_blank"><img src="http://soledadpenades.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2009/12/18/my-git-workflow/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=8399&amp;amp;url=http%3A%2F%2Fsoledadpenades.com%2F2009%2F12%2F18%2Fmy-git-workflow%2F&amp;amp;language=en_GB&amp;amp;category=text&amp;amp;title=My+Git+workflow&amp;amp;description=I+first+attempted+to+use+Git+almost+a+year+ago.+I+tried+to+use+it+as+a+kind+of+rsync%27er+between+computers+for+my+personal+projects%2Bdata+folder.+It+didn%27t+work+too+well%3A+I+think+it+was+primarily+built+with+the+idea+of+versioning+and+syncing+source+files%2C+not+thousands+of+WAV+sample+files+scattered+around+thousands+of+nested+folders.+So+I+left+%22Start+using+Git%22+in+my+to-do+list+and+almost+forgot+about+it.%0D%0A%0D%0ARecently+I+was+about+to+start+a+project+where+I+didn%27t+know+quite+well+what+direction+it+was+going+to+take.+So+I+was+there%2C+experimenting+and+hacking+code+here+and+there+while+investigating+where+would+it+bring+us%2C+when+I+realised+that+I+would+like+to+have+a+snapshot+of+the+code+at+that+point%2C+before+continuing+with+the+next+part.+The+classic+solution+would+have+been+to+make+a+.zip+of+the+code+folder%2C+or+a+copy+of+the+folder+in+the+above+directory%2C+and+continue.+But+if+you+want+to+compare+between+versions%2C+manually+calling+diff+between+file+versions+is+cumbersome.+I+didn%27t+want+to+add+the+code+to+the+subversion+repository+because+it+was+by+no+means+ready+yet+for+anything.+So+I+though%3A+why+don%27t+I+use+git+for+this%3F%0D%0A%0D%0AFirst+steps+were+a+bit+uncertain%2C+but+I+quickly+developed+a+simple+yet+effective+command+line+technique.+Yeah%2C+no+IDE+plug-in+whatsoever%2C+I+am+just+using+a+bash+terminal.+It+works+pretty+much+like+this%3A%0D%0A%0D%0A%0D%0A%09code+code+code%0D%0A%09looks+good%21+let%27s+store+this...%0D%0A%09git+add+file1.cpp+file2.cpp+..........+or+git+add+.+for+adding+all+changed+files+to+the+commit%0D%0A%09git+commit+%28so+that+I+can+enter+more+than+one+line+of+commit+message%2C+in+the+editor+that+shows+up%29+or+git+commit+-m+%27commit+message%27+for+one+liners.%0D%0A%0D%0A%0D%0ASometimes%2C+when+I+want+to+see+what+has+changed%2C+I+use+gitk.+It+is+admittedly+ugly+but+once+you+get+it%2C+it%27s+nicer+than+reading+plain+diff+output+in+a+terminal+screen.+Specially+because+you+can+navigate+between+changes%2C+instead+of+having+to+manually+invoke+diff+for+each+file+you+want+to+compare.%0D%0A%0D%0AAt+a+certain+point+I+wanted+to+make+a+huge+code+change%2C+so+I+made+a+new+branch.+Actually%2C+I+haven%27t+gone+back+to+the+other+branch+since+then%2C+but+it%27s+good+to+know+it%27s+there+in+case+I+want+to+see+how+the+code+is+in+that+totally+incompatible+code+and+class-wise+approach+to+the+problem.%0D%0A%0D%0AProbably+one+of+the+things+I+like+more+is+that+everything+is+lightning+fast.+Since+the+repository+is+stored+locally%2C+there+is+no+more+waiting+for+commits+to+finish+or+contacting+the+server+for+getting+a+diff.+Even+if+your+Subversion+server+is+in+your+local+network%2C+it+will+never+beat+the+experience+of+a+localhost%2C+direct+disk+access+based+repository.+This+way%2C+one+doesn%27t+get+distracted+with+the+check+in%2Fcommit+process%3B+it+becomes+an+almost+automatic+action+so+the+mind+can+be+focused+in+the+real+problem%3A+the+code%21%0D%0A%0D%0AIf+you%27re+an+advanced+git+user%2C+you+might+have+already+realised+that+I+am+only+using+a+very+reduced+set+of+git+features.+Whether+that%27s+sad+or+not%2C+I+leave+it+up+to+you%3B+I+just+wanted+to+highlight+the+notion+that+although+git+is+generally+used+%28or+was+designed%29+for+huge+projects+with+lots+of+collaborators+branching+and+merging+intensively+and+all+that%2C+it+is+actually+very+good+for+producing+what+I+call+code+sketches%2C+and+it+doesn%27t+need+to+be+used+by+several+users+with+all+the+clone%2C+pull%2C+push+and+rest+of+single-worded+verbs+paraphernalia+to+enjoy+its+power.%0D%0A%0D%0APlease+don%27t+understand+this+post+as+a+subversion+sucks%2C+use+git+square-headed+litany%2C+but+rather+as+a+friendly+git+could+be+quite+useful%2C+if+you+have+some+spare+time+you+might+consider+having+a+look+at+it+suggestion+from+a+long-time+Subversion+user+who+knows+Git+is+intimidating+but+worth+the+effort+to+learn+%3AD&amp;amp;tags=git%2Csubversion%2Cworkflow%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Keeping .DS_Store files at bay</title>
		<link>http://soledadpenades.com/2009/07/02/keeping-ds_store-files-at-bay/</link>
		<comments>http://soledadpenades.com/2009/07/02/keeping-ds_store-files-at-bay/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 10:09:36 +0000</pubDate>
		<dc:creator>sole</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=1108</guid>
		<description><![CDATA[.DS_Store files are to Mac what Thumbs.db are to Windows: annoying, meaningless and worst of all, ubiquitous. Whenever you browse to a folder which contains certain magic files or you do something like moving an icon to a certain position, they system will create those files in the folder. Then you happily type in git [...]]]></description>
			<content:encoded><![CDATA[<p><strong>.DS_Store</strong> files are to Mac what <strong>Thumbs.db</strong> are to Windows: annoying, meaningless and worst of all, ubiquitous. Whenever you browse to a folder which contains certain magic files or you do something like moving an icon to a certain position, they system will create those files in the folder. Then you happily type in <em>git status</em>, or <em>svn status</em>, when lo and behold! those defiant .DS_Store files are there, waiting to be added to your repository.</p>
<p>So you type this in, frantically:</p>
<div class="syhi_block"><code><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;.DS_Store&quot;</span> <span style="color: #660033;">-delete</span></code></div>
<p>and then before it happens again, you edit your <strong>.gitignore</strong> file (which as the user&#8217;s manual helpfully <a href="http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#ignoring-files">points out</a>, should be <q>in the top level of your working directory</q>) and make sure it contains the following lines:</p>
<div class="syhi_block"><code># Ignore useless stuff<br />
.DS_Store</code></div>
<p>Or if you&#8217;re using subversion, you can set the <a href="http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.ignore.html">svn:ignore property</a>:</p>
<div class="syhi_block"><code>svn propset svn:ignore .DS_Store .</code></div>
<p>You may want to make sure there isn&#8217;t a previous value for svn:ignore with
<div class="syhi_block"><code>svn propget svn:ignore .</code></div>
<p> and if that&#8217;s the case, probably &#8220;merge&#8221; them so that you don&#8217;t lose those values.</p>
<p>While we are on it we could also add <em>Thumbs.db</em> to the list, but since I haven&#8217;t used a Windows system for developing in a long time, I don&#8217;t need to do that (lucky me!)</p>
 <p><a href="http://soledadpenades.com/?flattrss_redirect&amp;id=1108&amp;md5=0f5dbbd92e441c7f54b8a3841b484434" title="Flattr" target="_blank"><img src="http://soledadpenades.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2009/07/02/keeping-ds_store-files-at-bay/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=8399&amp;amp;url=http%3A%2F%2Fsoledadpenades.com%2F2009%2F07%2F02%2Fkeeping-ds_store-files-at-bay%2F&amp;amp;language=en_GB&amp;amp;category=text&amp;amp;title=Keeping+.DS_Store+files+at+bay&amp;amp;description=.DS_Store+files+are+to+Mac+what+Thumbs.db+are+to+Windows%3A+annoying%2C+meaningless+and+worst+of+all%2C+ubiquitous.+Whenever+you+browse+to+a+folder+which+contains+certain+magic+files+or+you+do+something+like+moving+an+icon+to+a+certain+position%2C+they+system+will+create+those+files+in+the+folder.+Then+you+happily+type+in+git+status%2C+or+svn+status%2C+when+lo+and+behold%21+those+defiant+.DS_Store+files+are+there%2C+waiting+to+be+added+to+your+repository.%0D%0A%0D%0ASo+you+type+this+in%2C+frantically%3A%0D%0A%0D%0A%0D%0Afind+.+-name+%22.DS_Store%22+-delete%0D%0A%0D%0A%0D%0Aand+then+before+it+happens+again%2C+you+edit+your+.gitignore+file+%28which+as+the+user%27s+manual+helpfully+points+out%2C+should+be+in+the+top+level+of+your+working+directory%29+and+make+sure+it+contains+the+following+lines%3A%0D%0A%0D%0A%0D%0A%23+Ignore+useless+stuff%0D%0A.DS_Store%0D%0A%0D%0A%0D%0AOr+if+you%27re+using+subversion%2C+you+can+set+the+svn%3Aignore+property%3A%0D%0A%0D%0A%0D%0Asvn+propset+svn%3Aignore+.DS_Store+.%0D%0A%0D%0A%0D%0AYou+may+want+to+make+sure+there+isn%27t+a+previous+value+for+svn%3Aignore+with+svn+propget+svn%3Aignore+.+and+if+that%27s+the+case%2C+probably+%22merge%22+them+so+that+you+don%27t+lose+those+values.%0D%0A%0D%0AWhile+we+are+on+it+we+could+also+add+Thumbs.db+to+the+list%2C+but+since+I+haven%27t+used+a+Windows+system+for+developing+in+a+long+time%2C+I+don%27t+need+to+do+that+%28lucky+me%21%29&amp;amp;tags=git%2Cmac+os+x%2Csubversion%2Ctrick%2Cblog" type="text/html" />
	</item>
		<item>
		<title>DVCS are very cool, but&#8230;</title>
		<link>http://soledadpenades.com/2009/05/29/dvcs-are-very-cool-but/</link>
		<comments>http://soledadpenades.com/2009/05/29/dvcs-are-very-cool-but/#comments</comments>
		<pubDate>Fri, 29 May 2009 21:39:09 +0000</pubDate>
		<dc:creator>sole</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://soledadpenades.com/?p=1019</guid>
		<description><![CDATA[I have taken a look at both git and mercurial. I even went as far as creating several git repositories for syncing stuff across three computers and testing how it would work. It went quite well, considering there was a huge amount of data involved (for example, my music repository, which consists in lots of [...]]]></description>
			<content:encoded><![CDATA[<p>I have taken a look at both git and mercurial. I even went as far as creating several git repositories for syncing stuff across three computers and testing how it would work. It went quite well, considering there was a huge amount of data involved (for example, my music repository, which consists in lots of folders with lots of WAV samples and some more folders with my songs, in both the source formats (IT, XM, S3M, RNS and even XRNS) and the renders (MP3 or OGG, depending on how I felt that particular day). </p>
<p>But I&#8217;m still not completely keen on using them, because there are two things that can be done only with subversion: checking out only a folder, out from the complete hierarchy. And externals.</p>
<p>Although technically one could check out only a folder with git (or that&#8217;s what I could deduct from what I read), it is still kind of awkward/buggy and very far from being as intuitive as it is with subversion. When I looked for info in mercurial docs, it directly said it wasn&#8217;t possible.</p>
<p>Now it seems google code is offering project owners the possibility of switching from subversion to mercurial, but I am going to keep using subversion there too. I don&#8217;t think anyone is going to want to branch any of my <del datetime="2010-08-21T21:56:45+00:00"><a href="http://code.google.com/p/supersnippets/">supersnippets</a> but you never know ;)</del> &#8212; I <a href="http://github.com/sole/snippets">moved the project</a> to github! You can now branch it if you want :D</p>
<p>You may argue that I could do with lots of mini git repositories for each folder I might possibly want to check out, but knowing myself as I do, that&#8217;s just calling for a disaster to happen. I would probably forget to clone/update the most important repository before going offline, you know, that kind of things. It works better for me to keep a single repository with a nice hierarchy of miniprojects that I might occasionally extract or use as externals in other projects.</p>
<p>Just give me those two features and I will be completely convinced to switch to a DVCS (i.e. <em>Distributed Version Control System</em>) :-)</p>
 <p><a href="http://soledadpenades.com/?flattrss_redirect&amp;id=1019&amp;md5=bedd35a290aba0c5238ce2c1515e6a87" title="Flattr" target="_blank"><img src="http://soledadpenades.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://soledadpenades.com/2009/05/29/dvcs-are-very-cool-but/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=8399&amp;amp;url=http%3A%2F%2Fsoledadpenades.com%2F2009%2F05%2F29%2Fdvcs-are-very-cool-but%2F&amp;amp;language=en_GB&amp;amp;category=text&amp;amp;title=DVCS+are+very+cool%2C+but%26%238230%3B&amp;amp;description=I+have+taken+a+look+at+both+git+and+mercurial.+I+even+went+as+far+as+creating+several+git+repositories+for+syncing+stuff+across+three+computers+and+testing+how+it+would+work.+It+went+quite+well%2C+considering+there+was+a+huge+amount+of+data+involved+%28for+example%2C+my+music+repository%2C+which+consists+in+lots+of+folders+with+lots+of+WAV+samples+and+some+more+folders+with+my+songs%2C+in+both+the+source+formats+%28IT%2C+XM%2C+S3M%2C+RNS+and+even+XRNS%29+and+the+renders+%28MP3+or+OGG%2C+depending+on+how+I+felt+that+particular+day%29.+%0D%0A%0D%0ABut+I%27m+still+not+completely+keen+on+using+them%2C+because+there+are+two+things+that+can+be+done+only+with+subversion%3A+checking+out+only+a+folder%2C+out+from+the+complete+hierarchy.+And+externals.%0D%0A%0D%0AAlthough+technically+one+could+check+out+only+a+folder+with+git+%28or+that%27s+what+I+could+deduct+from+what+I+read%29%2C+it+is+still+kind+of+awkward%2Fbuggy+and+very+far+from+being+as+intuitive+as+it+is+with+subversion.+When+I+looked+for+info+in+mercurial+docs%2C+it+directly+said+it+wasn%27t+possible.%0D%0A%0D%0ANow+it+seems+google+code+is+offering+project+owners+the+possibility+of+switching+from+subversion+to+mercurial%2C+but+I+am+going+to+keep+using+subversion+there+too.+I+don%27t+think+anyone+is+going+to+want+to+branch+any+of+my+supersnippets+but+you+never+know+%3B%29+--+I+moved+the+project+to+github%21+You+can+now+branch+it+if+you+want+%3AD%0D%0A%0D%0AYou+may+argue+that+I+could+do+with+lots+of+mini+git+repositories+for+each+folder+I+might+possibly+want+to+check+out%2C+but+knowing+myself+as+I+do%2C+that%27s+just+calling+for+a+disaster+to+happen.+I+would+probably+forget+to+clone%2Fupdate+the+most+important+repository+before+going+offline%2C+you+know%2C+that+kind+of+things.+It+works+better+for+me+to+keep+a+single+repository+with+a+nice+hierarchy+of+miniprojects+that+I+might+occasionally+extract+or+use+as+externals+in+other+projects.%0D%0A%0D%0AJust+give+me+those+two+features+and+I+will+be+completely+convinced+to+switch+to+a+DVCS+%28i.e.+Distributed+Version+Control+System%29+%3A-%29&amp;amp;tags=git%2Cmercurial%2Csubversion%2Cworkflow%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

