ns-ext/scripts/git.rc.ps1
2023-12-14 15:03:07 +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