threads / discuss / 57081

What's the difference between 'git rebase -i HEAD~1' and 'git reset --soft HEAD^'

Subject: What's the difference between 'git rebase -i HEAD~1' and 'git reset --soft HEAD^'

## tl;dr

One message between Dec 14, 2021 and Dec 14, 2021.

replies: 0people: 1as markdown or json

Yuri· Dec 14, 2021, 23:01 UTC · lore

They both seem to perform the same function: undo the last commit and put all changes back as uncommitted.

But is there any difference between them?
Thanks,
Yuri

← back to recent threads