beiranvand-karim / working-circulation

0 stars 0 forks source link

94 #303

Open beiranvand-karim opened 2 months ago

beiranvand-karim commented 2 months ago

file name: amend.ps1

$cmdOutput = git branch --show-current | Out-String $CurrentBranchName = [string]::join("", ($cmdOutput.Split("`n"))) $CurrentBranchIndexNumber = [int] $CurrentBranchName;

$CurrentBranchIndexNumber | ForEach-Object { $ } { git reset --soft HEAD~1; git add . git commit -m "$"; }