|  

On Migrating from TFS + TFVC to VSTS + git post I showed how to export your TFVC repository, or a part of it, to a git repository using git-tfs tool. Today, I found an alternative totally by chance and it might be just what you needed to finally move to git.

TFS 2018 and Azure DevOps offers an option called Import Repository located at Code in TFS or Repos Azure DevOps. This option will import or create a git repository from another host such as github or a local TFVC repository. While Microsoft does caution against importing history from TFVC into your new git repository, they actually provide an option to import up to 180 days of history.

Import Repository Where to find Import Repository - Image borrowed from MS documentation linked to below

Import TFVC Repository as GIT Very simple import TFVC to GIT dialog

Remember that this is a very simple option and won’t give you the customization offered by git-tfs. Also, you can use TFS to export a repository, download it to your computer, modify the remote and push it somewhere else.

Here is MS Documentation.

Cheers

|

Slow blog - improvements needed! This blog is so slow…

Recently, I run a GT Metrix test on my blog and got an abysmal D score. After some investigation I noticed a few things that need improvement:

  • Disqus was loading too many things that I really didn’t care for. This included ads.
  • Many scripts, styles and images were not optimized nor entirely needed.
  • No browser caching was implemented

To fix Disqus problem I removed it entirely, I really don’t like ads, specially how Disqus introduced them in their free offering. I’m evaluating an alternative option and will reintroduce commenting soon, I hope.

After round of improvements I was able to remove unnecessary scripts, styles, fonts and images. This included replacing SyntaxHighlighter in favor of Git Hub Gists and image compression using Tiny PNG. The image compression along saved about 40% in file transfer size.

There were more changes done but I don’t feel they made a whole lot of difference just yet. There will be more changes to come too as I find more opportunities.

If you are interested here is the commit with all the changes.

Cheers