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

1 messages from 2021-12-14 to 2021-12-14. Participants: Yuri.
Thread: https://gitlist.dev/t/57081

## Yuri, 2021-12-14 23:01

Subject: What's the difference between 'git rebase -i HEAD~1' and 'git reset --soft HEAD^'
Message-ID: <e584d004-334c-f9ed-39cb-77cba02cae1a@rawbw.com>
URL: https://gitlist.dev/e/e584d004-334c-f9ed-39cb-77cba02cae1a%40rawbw.com

```
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



```
