Is this because Mercurial and Bitbucket are less popular? Or is it because Mercurial is a lot more straightforward? I’m unsure. There’s plenty of content online on how to use Git / TortoiseGit / GitHub, and not quite as much Mercurial / TortoiseHg / Bitbucket.I’ve since tried Git and GitHub, and I’ll more than happily use them for an existing repo or when I’m part of a team that prefers Git, but personally I always lean towards Mercurial. For me personally, years ago when I was first getting into PowerShell, I read one blog that recommend Mercurial as the best source control for PowerShell. I’m not going to go into great detail over Mercurial vs Git, there is plenty good discussion elsewhere on the Internet. I believe many Windows admins will also feel the same if they tried both. I prefer to use Mercurial / TortoiseHg over to Git / TortoiseGit.While TortoiseGit and GitHub may seem the obvious choice to some, there are a couple of reasons why I’m going to use Bitbucket: In this case I will be using TortoiseHg (GUI for Mercurial) as my source control tool, Bitbucket as my online repository. Personally I love to use them for router and firewall backups, a practice I began after a Virgin Business SuperHub randomly reset to the factory default configuration… twice. Some use them with Jekyll to have revision history for their websites, some use them with LaTeX for professional documents. However keep in mind that source control tools aren’t just useful for source code they’re good for managing changes to any type of text files (and even binary files in a more limited fashion). In fact the first image on that page pretty much sums everything up “Script – Copy.ps1”, “Script – Copy (1).ps1”, “Script – Copy Testing Foobar Change.ps1” gets messy and unworkable really fast when working on scripts or code. If you aren’t familiar with source control, there are plenty of explanations online, and my favourite is part of the Hg Init Mercurial tutorial. Furthermore, it only makes sense that I store them in an online repository to share the scripts publicly. After writing part 4, I realised that I need to get some of this blog’s scripts into source control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |