Created
June 29, 2012 16:57
-
-
Save danstuken/3019205 to your computer and use it in GitHub Desktop.
Simple Powershell Drives for Git repos in a folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem $myGitRepoPath | foreach { $rootDir = $_.FullName; $gitPath = join-path $_.FullName ".git"; $driveName = $_.BaseName.Replace('.','_'); if(test-path $gitPath){ New-PSDrive -name $driveName -psprovider FileSystem -root $rootDir } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment