ns-ext/scripts/git.rc.ps1
2023-12-14 11:23:22 +08:00

6 lines
129 B
PowerShell

$branch = $( git branch --show-current )
git checkout main
git pull
git branch -D $branch
git branch $branch
git checkout $branch