Chapter 18. Using Source Control Software with PowerShell

Trevor Sullivan

Windows PowerShell is a phenomenal tool for automation, but with great power comes great responsibility. Over time you’ll find that your script repository will grow larger and larger, and you’ll frequently need to modify scripts to provide additional functionality, fix bugs, or make your code more readable. As your repository grows and morphs it’s important to maintain a history of changes to your script files. The benefits of keeping track of history are many, most importantly including the ability to revert to an old version of a script if you make a breaking modification.

In this chapter I’ll describe the benefits of using source control and how to perform basic source ...

Get PowerShell Deep Dives now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.