Moving from TFS to git while maintaining changeset and branch history

January 14, 2015 - 12:00 am

So, you’re also looking to move from TFS to git? Lucky you! :) There’s a Git <-> TFS bridge available to help you out with that; but the latest release doesn’t fully support branching, so if you need branches as well you’ll need to grab the code from this pull request instead.

In order to grab it, you can do the following..

git clone C:/workspace/git-tfs (or wherever you want to store it locally)
cd c:/workspace/git-tfs
git remote add pmiossec
git fetch pmiossec
git checkout pmiossec/rename_branch_and_add_file

Now you just need to load up the GitTfs.Sln in Visual Studio. Unload the projects that don’t match your installed Visual Studio version. Build the rest. Grab the binaries from GitTfs/bin/Debug. You’ll also need a dll from lib\libgit2sharp\LibGit2Sharp\bin\Debug\NativeBinaries. (amd64 for 64 bit CPU, x86 for 32 bit CPU).

Now you should be good to go. Verify that you’re using the correct version by using git-tfs version. It should be

To clone your TFS repository, use this:

git-tfs clone --username=<USER> --password=<PASSWORD> <TFS_URL> <TFS_BRANCH> <LOCAL_PATH>

For example.

git-tfs clone --username=Emil --password=c0deb0ss $/AwesomeProject/Main C:/workspace/awesome-project --with-branches

Any questions? Just tweet me at @EKantis and I’ll get back to you. Cheers!

Some meta and GitHug

November 25, 2013 - 10:22 pm

Hello! Been a while.. Apparently it’s quite hard to create content developer that actually feels useful to someone.. :) I’m looking forward to posting some info in a few weeks when we’ve launched the projects I’m working on.

Until then I thought I’d just let you all know about this great thing that helped me become more fluent with git. Basically it’s an interactive tutorial that gives you a set of 40-ish tasks to complete, along with hints and automated validation of your solution. Great way of getting to know the basics of the more powerful commands!

Tools for responsive design

October 15, 2013 - 8:37 am

I’m working on a responsive website right now and a tool that has been really useful to kink out glaring flaws has been this viewport resizer. Easy to use and minimal effort to set up :)

Another useful, more advanced, tool is Adobe Edge Inspect which lets you hook different devices to your computer and browse sites. Supports using Chrome’s developer tools to inspect elements and run javascript on the connected devices. You can read more here!

Google Analytics course

October 12, 2013 - 10:00 am

A coworker notified me regarding a course in Google Analytics that’s being run by Google, free of charge. Great opportunity to learn how to make the most of your website data. Plus, if you complete the course before the end of the month you’ll get a course certificate which you can add to your cover letter. Sounds awesome, doesn’t it? 😀

Joining the blogosphere

October 11, 2013 - 7:18 pm

Hi there!

This site used to be dedicated to my private business, Code Boss. But since I recently got hired as an IT consultant / System developer at XLENT I decided to convert the site into a blog. Honestly, the business hadn’t seen much action the past few years anyway, so no biggie.

I’m currently working in two projects, one where I’m developing a WordPress site (which inspired and eased the creation of this site). In the other project we’re working with InvisionPower’s IP.Board system in collaboration with a major Swedish media company, exciting times!

The point of the blog is to share my experiences, as well as give some insight into my work.