Free online Source Control with PowerGui Pro.

Currently I am using a free plan with Dynamsoft for source control with PowerGui, you get 25 MB for free, which will last me a long time at my current speed of writing PowerShell scripts Smile

 

Here is a quick guide to setting up an account.

Go to http://www.dynamsoft.com/products/SAWHosted_FreePlan.aspx and sign up for a free account.

Just fill in your information, and wait for the confirmation email. When the mail arrives you have to click the link to activate your account, on that page there is a link to download the Dynamsoft Source AnyWhere Hosted Server Manager:

http://www.dynamsoft.com/downloads/sawhosted_download.aspx

I my case running on Windows I choose the Windows version Smile

 

image

Download and install the client.

It prompts you if you want to make it your default Source Control provider, which in my case I choose yes, since this is my private machine.

SNAGHTML562d4a8

 

You then fire you PowerGui Pro, and go to Tools –> Options

image

Under options you choose  “Version Control” and in Current provider you choose Dynamsoft SourceAnyware Hosted then click advanced.

SNAGHTML5665897

In the General Pane I choose a new path for saving Temp files.

SNAGHTML5687a49

Under External Programs I put in the path for PowerGUI Pro, in my Case: C:\Program Files (x86)\Quest Software\PowerGUI Pro\ScriptEditor.exe

(I use WinMerge for file comparison, so that is what you see in the image below WinMerge can be downloaded here: http://winmerge.org/ )

SNAGHTML56e1b87

If you do not want to view the DynamSoft Login log every time you login.

SNAGHTML573002b

First time you try to save a script in PowerGui Pro, it will prompt you if you want to check it into your Source Control system.

A login box will appear, fill in the fields with the data from your welcome mail, and choose if you want to be prompted for a password, everything you check something in/out.

SNAGHTML57787e1

You get prompted to choose a Repository, in this case just choose “default”

SNAGHTML57a1a7e

In my case I have a few existing Projects, but I choose to create a new Project called “Test Project”

SNAGHTML57b4852SNAGHTML589f256

You then get prompted to put in a comment

SNAGHTML58aa56f

In PowerGui you now have an extra menu called “Version Control” and you can see a mark on each tab if your script is in the source control and if it is checked in or out.

image (The arrow on the tab is blue if the script is checked in, and red if it is checked out)

I have checked the script out (If you try to edit the script, it will automatically prompt you to check out the script), I made some changes, and try to check it in again.

image

image

You get prompted to enter a comment, after that is entered the file is checked back in.. (You can leave to comment field blank if you do not want to write something)

SNAGHTML590ed57

You can manage your software projects from the DynamSoft application.

Go to start menu and choose Dynamsoft SourceAnywhere Hosted

Sign in with your username/Password

 

First thing do to is go to Tools –> Options –> External Programs

 

SNAGHTML5bbb316

As you can see my test project is now in my list of projects.

image

One thing I have noticed is that Dynamsoft default checks files in as Binary files, which means it does not allow you to do a text comparison of the two, in order to change that  right click the .ps1 file and choose properties.

image

Then you change the type from Binary to Mergeable, you can now compare your different versions of checked in files.

SNAGHTML5a0136e

 

Right click the file you want to “compare”, then choose  “Show History”, you get a lot of options to choose from, in most cases the default options are enough. Click OK

 

In this example I have made an initial version of the script then made some changes and checked it back in.

I highlight both files and choose Diff

SNAGHTML5a42317

This will bring up WinMerge and show the differences (This is a horrible example of file comparison I Know)

 

image

 

This guide should be enough to get you started…  Smile

 

Edit:

 

Here is a better example of script a script comparison.

SNAGHTML5a9248d

image

comments powered by Disqus