<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Versioning on ./scriptthe.net</title>
    <link>https://scriptthe.net/tags/versioning/</link>
    <description>Recent content in Versioning on ./scriptthe.net</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>All content &amp;copy; ./scriptthe.net All Rights Reserved.</copyright>
    <lastBuildDate>Thu, 04 Dec 2014 17:10:34 +0000</lastBuildDate>
    
	<atom:link href="https://scriptthe.net/tags/versioning/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>.gitignore ignore all except</title>
      <link>https://scriptthe.net/2014/12/04/gitignore-all-except/</link>
      <pubDate>Thu, 04 Dec 2014 17:10:34 +0000</pubDate>
      
      <guid>https://scriptthe.net/2014/12/04/gitignore-all-except/</guid>
      <description>For certain configuration directories in my home dir, I sometimes want multiple files pushed to my dotfiles repo, but the majority of them not to be cared for (.env, .log, etc..) so I needed a way to use gitignore the opposite way: block everything and only allow some things:
# Ignore everything * # But not these files... !.gitignore !script.pl !template.latex # etc... # ...even if they are in subdirectories !</description>
    </item>
    
    <item>
      <title>Change an email address across multiple files in an svn directory</title>
      <link>https://scriptthe.net/2014/11/19/change-an-email-address-across-multiple-files-in-an-svn-directory/</link>
      <pubDate>Wed, 19 Nov 2014 15:29:06 +0000</pubDate>
      
      <guid>https://scriptthe.net/2014/11/19/change-an-email-address-across-multiple-files-in-an-svn-directory/</guid>
      <description>This one is quite easy, but a little tricky. Had to do this for work as one of our groups was changing their email address and a few of the repo’s they used had files that depended on that email.
A couple requirements to keep in mind:
 Had to be recursive
 Had to excude certain file types
 Had to do the replacement in an svn repository, which apparantly is difficult.</description>
    </item>
    
    <item>
      <title>Git svn clone only latest revision/HEAD</title>
      <link>https://scriptthe.net/2014/10/09/git-svn-clone-only-the-latest-revisionhead/</link>
      <pubDate>Thu, 09 Oct 2014 13:24:10 +0000</pubDate>
      
      <guid>https://scriptthe.net/2014/10/09/git-svn-clone-only-the-latest-revisionhead/</guid>
      <description>git svn clone -s -r HEAD http://svn/java/&amp;lt;projectname&amp;gt;  Not that you can do a range with a -r 2039:HEAD for revisions 2039 -&amp;gt; HEAD.</description>
    </item>
    
    <item>
      <title>Changing your repos` remote origin</title>
      <link>https://scriptthe.net/2014/05/01/moving-your-local-repo-to-a-new-remote-repo/</link>
      <pubDate>Thu, 01 May 2014 22:03:06 +0000</pubDate>
      
      <guid>https://scriptthe.net/2014/05/01/moving-your-local-repo-to-a-new-remote-repo/</guid>
      <description>The server I usually use to store my repo is going to go offline soon. So I decided to just move it to bitbucket (love the free private repos:)
$ git remote origin  So obviously we only have our remote origin.
git remote remove origin git remote add origin git@bitbucket.org:username/repo.git  Then, lets push up our repo and all associated data with it (i.e. your commits)
git push -u origin --all # pushes up the repo and its refs for the first time git push -u origin --tags # pushes up any tags  And thats it!</description>
    </item>
    
  </channel>
</rss>