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
$source = $args[0]; | |
$dest = $args[1]; | |
$files = Get-ChildItem "$source" -recurse | |
foreach($file in $files) { | |
if ($file.psiscontainer) { | |
$common_directory = $file.FullName.Replace($source, "") | |
$new_directory = $dest + $common_directory | |
Write-Host "Creating directory $new_directory" | |
New-Item $new_directory -type directory |
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
#!/bin/bash | |
case "$1" in | |
'place1') | |
git config --global user.name "Your Name" | |
git config --global user.email foo@bar.com | |
;; | |
*) | |
git config --global user.name "Your Other Name" | |
git config --global user.email bar@baz.com |
NewerOlder