ardiardianto.blogspot.com
git branch from tags
git branch mybranch001 tags/v1.0.0 git checkout mybranch001 git cherry-pick xxx git branch --set-upstream-to=origin/mybranch001 git push --force-with-lease
- Without Get-Content
- Dynamic call/execute command
$text = "texthere"$cmd = "Add-Content -Path C:\xxx.txt -Value ""$text"""for ($i = 0; $i -lt 1000; $i++) { Invoke-Expression $cmd }
$text = "texthere"
$cmd = "Add-Content -Path C:\xxx.txt -Value ""$text"""
for ($i = 0; $i -lt 1000; $i++) { Invoke-Expression $cmd }