diff --git a/gitcommands.go b/gitcommands.go index 80bbef860..1a151310f 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -471,7 +471,7 @@ func gitPush() (string, error) { } func gitSquashPreviousTwoCommits(message string) (string, error) { - return runDirectCommand("git reset --soft head^ && git commit --amend -m \"" + message + "\"") + return runDirectCommand("git reset --soft HEAD^ && git commit --amend -m \"" + message + "\"") } func gitRenameCommit(message string) (string, error) {