Version Control for Powershell Scripts

Welcome Forums General PowerShell Q&A Version Control for Powershell Scripts

Viewing 0 reply threads
  • Author
    Posts
    • #5147
      Participant
      Topics: 1562
      Replies: 0
      Points: 0
      Rank: Member

      by miltongoh at 2012-09-27 01:42:26

      Hi,

      I wonder if anyone starts doing version controlling for your powershell scripts? If yes, how and using what tools? If you don’t mind sharing.

      Cheers.

      by RichardSiddaway at 2012-09-27 04:00:26

      I’ve used two methods –
      source safe
      – a simple folder structure to hold past versions

      In either case the important point is control who has access to the scripts to modify them

      by surveyor at 2012-09-27 04:24:51

      Hi,
      I’m not using sourcecontrol at this time but have found a few interesting articles in the past.

      http://powertoe.wordpress.com/2010/12/12/why-every-it-pro-should-use-mercurial-for-source-control-with-their-powershell-scripts/
      and
      http://www.hanselman.com/blog/PromptsAndDirectoriesEvenBetterGitAndMercurialWithPowerShell.aspx

      by miltongoh at 2012-09-27 05:32:01

      I’ve used two methods –
      source safe
      – a simple folder structure to hold past versions

      In either case the important point is control who has access to the scripts to modify them

      How about in the scenarios where there is a team of administrators that are writing powershell scripts to aid in their day-to-day operations. How would you recommend a team that may locate in different place to work on same script? Assuming cloud may be the right place to store their versions for tracking.

      by miltongoh at 2012-09-27 05:33:22

      Hi,
      I’m not using sourcecontrol at this time but have found a few interesting articles in the past.

      http://powertoe.wordpress.com/2010/12/12/why-every-it-pro-should-use-mercurial-for-source-control-with-their-powershell-scripts/
      and
      http://www.hanselman.com/blog/PromptsAndDirectoriesEvenBetterGitAndMercurialWithPowerShell.aspx

      Thanks, I have read one of the article already by Tome. Really very detail and useful. First time coming across Hanselman one though. Will go read up first~ 🙂

      by cookie.monster at 2013-01-30 17:45:56

      I set up mercurial for our internal PowerShell scripts and modules. Previously used a staging directory, but now more folks may start working with the same files. Not a developer and haven’t used (actual) source control in years, but the concepts seem easy to understand and the setup was pretty simple.

      In addition to the posts above, I found Jason Hofferle’s post and a site he linked to, hginit.com, very helpful.

      I assume I can set up a repository on a share and control access through NTFS. PowerShell (well, cmd.exe) understandably barked at me when I tried to run initialize / add / commit a UNC path. After mapping the path to a network drive I was able to do this without issue.

      Anyone else using Mercurial? Do you use any integration through PowerShell with tools like posh-hg?

Viewing 0 reply threads
  • The topic ‘Version Control for Powershell Scripts’ is closed to new replies.