Pages

Tuesday, July 5, 2022

git command for recreate feature branch

git command for recreate feature branch

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

Wednesday, June 15, 2022

Powershell Append or Add Text into File

Powershell Append or Add Text into File

- 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 }

ShareThis