In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| function main { | |
| Update-Windows-Configuration | |
| Install-Utils | |
| Install-Browsers | |
| Install-Fonts |
| # encrypt files to utf-8 no bom | |
| [string[]]$Excludes = @('**Debug**', '**bin\**', '*TemporaryGeneratedFile*.cs', '*.Designer.cs') | |
| Get-ChildItem . -recurse -Include *.aspx, *.master, *.cs -Exclude $Excludes | ForEach-Object { | |
| $content = $_ | Get-Content | |
| $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False | |
| $_.Fullname |
| <# | |
| .SYNOPSIS | |
| Converts files to the given encoding. | |
| Matches the include pattern recursively under the given path. | |
| .EXAMPLE | |
| Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8 | |
| #> | |
| function List-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') { | |
| $count = 0 |